aboutsummaryrefslogtreecommitdiff
path: root/src/components/Loading/Loading.tsx
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2020-08-10 00:49:49 +0300
committereug-vs <eug-vs@keemail.me>2020-08-10 00:50:03 +0300
commit08e9e3abb9830b6c46f46aacb6a40ba32c4c665f (patch)
tree71fabfcb08a857cc474e9635ea441d655ed25144 /src/components/Loading/Loading.tsx
parent7ba15a22d1bd57e7c26ff2d5fccf5505aaf8619e (diff)
downloadwhich-ui-08e9e3abb9830b6c46f46aacb6a40ba32c4c665f.tar.gz
feat: memoize static components
Diffstat (limited to 'src/components/Loading/Loading.tsx')
-rw-r--r--src/components/Loading/Loading.tsx4
1 files changed, 2 insertions, 2 deletions
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;