Skip to content

Commit

Permalink
EPMRPP-76491 || code review fixes - 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Sidarkevich committed Apr 15, 2022
1 parent 97f53b7 commit 01bf2c2
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,17 +164,16 @@ export const ProjectSettingsPageContainer = () => {
return config[activeTab].component;
}, [activeTab, config]);

const header = useMemo(() => {
const itemsConfig = createItemsConfig();
const title = itemsConfig[activeTab].name;
const getHeader = () => {
const title = config[activeTab].name;

return <Header title={title} />;
}, [createItemsConfig, activeTab]);
};

return (
<SettingsLayout navigation={navigation}>
<ScrollWrapper>
<div className={cx('header')}>{header}</div>
<div className={cx('header')}>{getHeader()}</div>
<div className={cx('content')}>{content}</div>
</ScrollWrapper>
</SettingsLayout>
Expand Down

0 comments on commit 01bf2c2

Please sign in to comment.