diff options
author | eug-vs <eug-vs@keemail.me> | 2020-10-08 13:56:28 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2020-10-08 13:56:28 +0300 |
commit | 80a09a9ec176c7585dca9d81f6b3d690660ce633 (patch) | |
tree | 0c7c375a24519fdff596f8377e2a131b98d2501e /src | |
parent | 4a86d5c3f0b023c6e4e7862f2a49301ef8b4d3f7 (diff) | |
download | which-ui-80a09a9ec176c7585dca9d81f6b3d690660ce633.tar.gz |
style: fix eslint errors
Diffstat (limited to 'src')
-rw-r--r-- | src/components/ModalScreen/ModalScreen.tsx | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/components/ModalScreen/ModalScreen.tsx b/src/components/ModalScreen/ModalScreen.tsx index 4a4b1be..81e5c5a 100644 --- a/src/components/ModalScreen/ModalScreen.tsx +++ b/src/components/ModalScreen/ModalScreen.tsx @@ -32,12 +32,10 @@ const useStyles = makeStyles(theme => ({ } })); -const Transition = React.forwardRef(function Transition( - props: TransitionProps & { children?: React.ReactElement<any, any> }, - ref: React.Ref<unknown>, -) { - return <Slide direction="left" ref={ref} {...props} />; -}); +const Transition = React.forwardRef(( + props: TransitionProps & { children?: React.ReactElement }, + ref: React.Ref<unknown> +) => <Slide direction="left" ref={ref} {...props} />); const ModalScreen: React.FC<PropTypes> = ({ title, children }) => { const [isOpen, setIsOpen] = useState<boolean>(true); @@ -47,7 +45,7 @@ const ModalScreen: React.FC<PropTypes> = ({ title, children }) => { const history = useHistory(); const handleClose = useCallback(() => setIsOpen(false), [setIsOpen]); - const onExited = useCallback(() => history.goBack(), [history]) + const onExited = useCallback(() => history.goBack(), [history]); return ( <Dialog |