From 08e9e3abb9830b6c46f46aacb6a40ba32c4c665f Mon Sep 17 00:00:00 2001
From: eug-vs <eug-vs@keemail.me>
Date: Mon, 10 Aug 2020 00:49:49 +0300
Subject: feat: memoize static components

---
 src/components/Loading/Loading.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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

diff --git a/src/components/Loading/Loading.tsx b/src/components/Loading/Loading.tsx
index 30b8cda..34d436b 100644
--- a/src/components/Loading/Loading.tsx
+++ b/src/components/Loading/Loading.tsx
@@ -10,7 +10,7 @@ const useStyles = makeStyles(theme => ({
   }
 }));
 
-const Loading: React.FC = () => {
+const Loading: React.FC = React.memo(() => {
   const classes = useStyles();
 
   return (
@@ -18,7 +18,7 @@ const Loading: React.FC = () => {
       <CircularProgress color="primary" style={{ margin: '0 auto' }} />
     </div>
   );
-};
+});
 
 export default Loading;
 
-- 
cgit v1.2.3

