From 48288aea1847b6a5f2f50ce3fffd576039f85a59 Mon Sep 17 00:00:00 2001 From: Ezerous Date: Sat, 27 Feb 2021 22:24:17 +0200 Subject: [PATCH] fix: useless rerenders vol.2 --- .../src/layouts/MainLayout/MainLayoutMenu/index.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/concordia-app/src/layouts/MainLayout/MainLayoutMenu/index.jsx b/packages/concordia-app/src/layouts/MainLayout/MainLayoutMenu/index.jsx index 1f0c0f7..a12d633 100644 --- a/packages/concordia-app/src/layouts/MainLayout/MainLayoutMenu/index.jsx +++ b/packages/concordia-app/src/layouts/MainLayout/MainLayoutMenu/index.jsx @@ -1,4 +1,4 @@ -import React, { useState } from 'react'; +import React, { memo, useState } from 'react'; import { Dropdown, Menu } from 'semantic-ui-react'; import { useTranslation } from 'react-i18next'; import { useHistory } from 'react-router'; @@ -95,4 +95,4 @@ const MainLayoutMenu = () => { ); }; -export default MainLayoutMenu; +export default memo(MainLayoutMenu);