From 80a09a9ec176c7585dca9d81f6b3d690660ce633 Mon Sep 17 00:00:00 2001
From: eug-vs <eug-vs@keemail.me>
Date: Thu, 8 Oct 2020 13:56:28 +0300
Subject: style: fix eslint errors

---
 src/components/ModalScreen/ModalScreen.tsx | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

(limited to 'src/components/ModalScreen/ModalScreen.tsx')

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
-- 
cgit v1.2.3

