File tree Expand file tree Collapse file tree 5 files changed +2
-20
lines changed Expand file tree Collapse file tree 5 files changed +2
-20
lines changed Original file line number Diff line number Diff line change 38
38
"react-dom" : " 17.0.2" ,
39
39
"react-router-dom" : " 6.3.0" ,
40
40
"swr" : " 1.2.2" ,
41
- "uuid" : " ^8.3.2" ,
42
41
"xstate" : " 4.30.6" ,
43
42
"yup" : " 0.32.11"
44
43
},
58
57
"@types/react" : " 17.0.43" ,
59
58
"@types/react-dom" : " 17.0.14" ,
60
59
"@types/superagent" : " 4.1.15" ,
61
- "@types/uuid" : " ^8.3.4" ,
62
60
"@typescript-eslint/eslint-plugin" : " 5.18.0" ,
63
61
"@typescript-eslint/parser" : " 5.18.0" ,
64
62
"@xstate/cli" : " 0.1.6" ,
Original file line number Diff line number Diff line change @@ -76,9 +76,6 @@ export interface UserAgent {
76
76
}
77
77
78
78
export interface Pager {
79
- after : string
80
- before : string
81
- limit : number
82
79
total : number
83
80
}
84
81
Original file line number Diff line number Diff line change 1
1
import { ComponentMeta , Story } from "@storybook/react"
2
2
import React from "react"
3
- import { MockUser , MockUser2 } from "../../test_helpers"
3
+ import { MockPager , MockUser , MockUser2 } from "../../test_helpers"
4
4
import { UsersPageView , UsersPageViewProps } from "./UsersPageView"
5
5
6
6
export default {
@@ -13,12 +13,7 @@ const Template: Story<UsersPageViewProps> = (args) => <UsersPageView {...args} /
13
13
export const Ready = Template . bind ( { } )
14
14
Ready . args = {
15
15
users : [ MockUser , MockUser2 ] ,
16
- pager : {
17
- total : 2 ,
18
- after : "123" ,
19
- before : "456" ,
20
- limit : 10 ,
21
- } ,
16
+ pager : MockPager
22
17
}
23
18
export const Loading = Template . bind ( { } )
24
19
Loading . args = {
Original file line number Diff line number Diff line change @@ -34,9 +34,6 @@ export const MockUser2: UserResponse = {
34
34
}
35
35
36
36
export const MockPager : Pager = {
37
- after : uuidv4 ( ) ,
38
- before : uuidv4 ( ) ,
39
- limit : 10 ,
40
37
total : 2 ,
41
38
}
42
39
Original file line number Diff line number Diff line change 3751
3751
resolved "https://registry.yarnpkg.com/@types/unist/-/unist-2.0.6.tgz#250a7b16c3b91f672a24552ec64678eeb1d3a08d"
3752
3752
integrity sha512-PBjIUxZHOuj0R15/xuwJYjFi+KZdNFrehocChv4g5hu6aFroHue8m0lBP0POdK2nKzbw0cgV1mws8+V/JAcEkQ==
3753
3753
3754
- "@types/uuid@^8.3.4":
3755
- version "8.3.4"
3756
- resolved "https://registry.yarnpkg.com/@types/uuid/-/uuid-8.3.4.tgz#bd86a43617df0594787d38b735f55c805becf1bc"
3757
- integrity sha512-c/I8ZRb51j+pYGAu5CrFMRxqZ2ke4y2grEBO5AUjgSkSk+qT2Ea+OdWElz/OiMf5MNpn2b17kuVBwZLQJXzihw==
3758
-
3759
3754
"@types/webpack-env@^1.16.0":
3760
3755
version "1.16.3"
3761
3756
resolved "https://registry.yarnpkg.com/@types/webpack-env/-/webpack-env-1.16.3.tgz#b776327a73e561b71e7881d0cd6d34a1424db86a"
You can’t perform that action at this time.
0 commit comments