Browse Source

fix: useless rerenders vol.2

develop
Ezerous 4 years ago
parent
commit
48288aea18
  1. 4
      packages/concordia-app/src/layouts/MainLayout/MainLayoutMenu/index.jsx

4
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);

Loading…
Cancel
Save