mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
feat: add eslint linter
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
import {Breakpoint, theme} from 'antd';
|
||||
import {useMediaQuery} from 'react-responsive';
|
||||
import {Breakpoint, theme} from 'antd'
|
||||
import {useMediaQuery} from 'react-responsive'
|
||||
|
||||
const {useToken} = theme;
|
||||
const {useToken} = theme
|
||||
|
||||
type ScreenProperty = 'screenXXL' | 'screenXL' | 'screenLG' | 'screenMD' | 'screenSM' | 'screenXS';
|
||||
type ScreenProperty = 'screenXXL' | 'screenXL' | 'screenLG' | 'screenMD' | 'screenSM' | 'screenXS'
|
||||
|
||||
const propertyName = (breakpoint: Breakpoint): ScreenProperty => {
|
||||
return 'screen' + breakpoint.toUpperCase() as ScreenProperty
|
||||
};
|
||||
}
|
||||
|
||||
export default function useBreakpoint(
|
||||
breakpoint: Breakpoint
|
||||
|
||||
Reference in New Issue
Block a user