File tree 1 file changed +12
-12
lines changed 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change 1
1
import { ComponentMeta , Story } from "@storybook/react"
2
+ import { createPaginationRef } from "components/PaginationWidget/utils"
2
3
import { MockAuditLog , MockAuditLog2 } from "testHelpers/entities"
3
4
import { AuditPageView , AuditPageViewProps } from "./AuditPageView"
4
5
5
6
export default {
6
7
title : "pages/AuditPageView" ,
7
8
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
+ }
8
20
} as ComponentMeta < typeof AuditPageView >
9
21
10
22
const Template : Story < AuditPageViewProps > = ( args ) => (
11
23
< AuditPageView { ...args } />
12
24
)
13
25
14
26
export const AuditPage = Template . bind ( { } )
15
- AuditPage . args = {
16
- auditLogs : [ MockAuditLog , MockAuditLog2 ] ,
17
- count : 1000 ,
18
- page : 1 ,
19
- limit : 25 ,
20
- }
21
27
22
28
export const AuditPageSmallViewport = Template . bind ( { } )
23
- AuditPageSmallViewport . args = {
24
- auditLogs : [ MockAuditLog , MockAuditLog2 ] ,
25
- count : 1000 ,
26
- page : 1 ,
27
- limit : 25 ,
28
- }
29
29
AuditPageSmallViewport . parameters = {
30
30
chromatic : { viewports : [ 600 ] } ,
31
31
}
You can’t perform that action at this time.
0 commit comments