Skip to content

Commit e92cbbf

Browse files
committed
Fix Audit story
1 parent ba3783b commit e92cbbf

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
import { ComponentMeta, Story } from "@storybook/react"
2+
import { createPaginationRef } from "components/PaginationWidget/utils"
23
import { MockAuditLog, MockAuditLog2 } from "testHelpers/entities"
34
import { AuditPageView, AuditPageViewProps } from "./AuditPageView"
45

56
export default {
67
title: "pages/AuditPageView",
78
component: AuditPageView,
9+
argTypes: {
10+
auditLogs: {
11+
defaultValue: [MockAuditLog, MockAuditLog2],
12+
},
13+
count: {
14+
defaultValue: 1000,
15+
},
16+
paginationRef: {
17+
defaultValue: createPaginationRef({ page: 1, limit: 25 })
18+
}
19+
}
820
} as ComponentMeta<typeof AuditPageView>
921

1022
const Template: Story<AuditPageViewProps> = (args) => (
1123
<AuditPageView {...args} />
1224
)
1325

1426
export const AuditPage = Template.bind({})
15-
AuditPage.args = {
16-
auditLogs: [MockAuditLog, MockAuditLog2],
17-
count: 1000,
18-
page: 1,
19-
limit: 25,
20-
}
2127

2228
export const AuditPageSmallViewport = Template.bind({})
23-
AuditPageSmallViewport.args = {
24-
auditLogs: [MockAuditLog, MockAuditLog2],
25-
count: 1000,
26-
page: 1,
27-
limit: 25,
28-
}
2929
AuditPageSmallViewport.parameters = {
3030
chromatic: { viewports: [600] },
3131
}

0 commit comments

Comments
 (0)