diff options
Diffstat (limited to 'src/components/ModalScreen/ModalScreen.tsx')
-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 |