Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b5fd9c8

Browse files
committed
Strip Pager to just what's currently needed
1 parent 6757380 commit b5fd9c8

File tree

5 files changed

+2
-20
lines changed

5 files changed

+2
-20
lines changed

site/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
"react-dom": "17.0.2",
3939
"react-router-dom": "6.3.0",
4040
"swr": "1.2.2",
41-
"uuid": "^8.3.2",
4241
"xstate": "4.30.6",
4342
"yup": "0.32.11"
4443
},
@@ -58,7 +57,6 @@
5857
"@types/react": "17.0.43",
5958
"@types/react-dom": "17.0.14",
6059
"@types/superagent": "4.1.15",
61-
"@types/uuid": "^8.3.4",
6260
"@typescript-eslint/eslint-plugin": "5.18.0",
6361
"@typescript-eslint/parser": "5.18.0",
6462
"@xstate/cli": "0.1.6",

site/src/api/types.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,6 @@ export interface UserAgent {
7676
}
7777

7878
export interface Pager {
79-
after: string
80-
before: string
81-
limit: number
8279
total: number
8380
}
8481

site/src/pages/UsersPage/UsersPageView.stories.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ComponentMeta, Story } from "@storybook/react"
22
import React from "react"
3-
import { MockUser, MockUser2 } from "../../test_helpers"
3+
import { MockPager, MockUser, MockUser2 } from "../../test_helpers"
44
import { UsersPageView, UsersPageViewProps } from "./UsersPageView"
55

66
export default {
@@ -13,12 +13,7 @@ const Template: Story<UsersPageViewProps> = (args) => <UsersPageView {...args} /
1313
export const Ready = Template.bind({})
1414
Ready.args = {
1515
users: [MockUser, MockUser2],
16-
pager: {
17-
total: 2,
18-
after: "123",
19-
before: "456",
20-
limit: 10,
21-
},
16+
pager: MockPager
2217
}
2318
export const Loading = Template.bind({})
2419
Loading.args = {

site/src/test_helpers/entities.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ export const MockUser2: UserResponse = {
3434
}
3535

3636
export const MockPager: Pager = {
37-
after: uuidv4(),
38-
before: uuidv4(),
39-
limit: 10,
4037
total: 2,
4138
}
4239

site/yarn.lock

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3751,11 +3751,6 @@
37513751
resolved "https://registry.yarnpkg.com/@types/unist/-/unist-2.0.6.tgz#250a7b16c3b91f672a24552ec64678eeb1d3a08d"
37523752
integrity sha512-PBjIUxZHOuj0R15/xuwJYjFi+KZdNFrehocChv4g5hu6aFroHue8m0lBP0POdK2nKzbw0cgV1mws8+V/JAcEkQ==
37533753

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-
37593754
"@types/webpack-env@^1.16.0":
37603755
version "1.16.3"
37613756
resolved "https://registry.yarnpkg.com/@types/webpack-env/-/webpack-env-1.16.3.tgz#b776327a73e561b71e7881d0cd6d34a1424db86a"

0 commit comments

Comments
 (0)