feat: add page titles using React Helmet (#1321)

* feat: add page titles using React Helmet

* refactor: extract page title logic to separate component

* fix: resolve review comments

* fix: resolve testing errors
This commit is contained in:
Mustajab Ikram
2023-08-28 22:19:04 +05:30
committed by GitHub
parent 74919eff7a
commit 8bb4071f09
10 changed files with 242 additions and 137 deletions

View File

@ -1,3 +1,4 @@
import { HelmetProvider } from 'react-helmet-async';
import { MemoryRouter } from 'react-router-dom';
import type { Meta, StoryObj } from '@storybook/react';
import { useRecoilState } from 'recoil';
@ -24,7 +25,9 @@ const meta: Meta<typeof App> = {
<MemoryRouter>
<FullHeightStorybookLayout>
<MockedAuth>
<Story />
<HelmetProvider>
<Story />
</HelmetProvider>
</MockedAuth>
</FullHeightStorybookLayout>
</MemoryRouter>