Skip to content

Commit ea3a0b6

Browse files
committed
chore(storybook): add query client decorator, update timestamps in trust root overview
1 parent 34c0cf0 commit ea3a0b6

File tree

4 files changed

+306
-199
lines changed

4 files changed

+306
-199
lines changed

.storybook/preview.tsx

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,22 @@ import '@patternfly/patternfly/patternfly.css';
33
import '@patternfly/patternfly/patternfly-addons.css';
44
import { MemoryRouter } from 'react-router';
55
import { AppLayout } from '../src/app/AppLayout/AppLayout';
6+
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
67

78
const preview = {
89
decorators: [
9-
(Story) => (
10-
<MemoryRouter initialEntries={['/']}>
11-
<AppLayout openSidebar={false}>
12-
<Story />
13-
</AppLayout>
14-
</MemoryRouter>
15-
),
10+
(Story) => {
11+
const queryClient = new QueryClient();
12+
return (
13+
<QueryClientProvider client={queryClient}>
14+
<MemoryRouter initialEntries={['/']}>
15+
<AppLayout openSidebar={false}>
16+
<Story />
17+
</AppLayout>
18+
</MemoryRouter>
19+
</QueryClientProvider>
20+
);
21+
},
1622
],
1723
parameters: {
1824
controls: {

0 commit comments

Comments
 (0)