-
Notifications
You must be signed in to change notification settings - Fork 5
/
SubrecipientTableUploadLinksDisplay.stories.tsx
124 lines (116 loc) · 2.71 KB
/
SubrecipientTableUploadLinksDisplay.stories.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
import type { Meta, StoryObj } from '@storybook/react'
import SubrecipientTableUploadLinksDisplay from './SubrecipientTableUploadLinksDisplay'
const meta: Meta<typeof SubrecipientTableUploadLinksDisplay> = {
component: SubrecipientTableUploadLinksDisplay,
}
export default meta
type Story = StoryObj<typeof SubrecipientTableUploadLinksDisplay>
export const OneValidUpload: Story = {
args: {
validSubrecipientUploads: [
{
id: 1,
upload: {
id: 2,
filename: 'One valid upload',
},
updatedAt: '2024-08-14T22:04:53.850Z',
createdAt: '2024-08-14T22:04:53.850Z',
},
],
invalidSubrecipientUploads: [],
},
}
export const MultipleValidUploads: Story = {
args: {
validSubrecipientUploads: [
{
id: 2,
upload: {
id: 3,
filename: 'Most recent valid upload',
},
updatedAt: '2024-08-14T22:04:53.850Z',
createdAt: '2024-08-14T22:04:53.850Z',
},
{
id: 3,
upload: {
id: 4,
filename: 'Older valid upload',
},
updatedAt: '2024-08-14T22:04:53.850Z',
createdAt: '2024-08-14T22:04:53.850Z',
},
],
invalidSubrecipientUploads: [],
},
}
export const MultipleInvalidUploads: Story = {
args: {
validSubrecipientUploads: [],
invalidSubrecipientUploads: [
{
id: 4,
upload: {
id: 5,
filename: 'Invalid upload 1',
},
createdAt: '2024-08-10T22:04:53.850Z',
updatedAt: '2024-08-11T17:36:43.828Z',
},
{
id: 5,
upload: {
id: 6,
filename: 'Invalid upload 2',
},
createdAt: '2024-08-12T22:04:53.850Z',
updatedAt: '2024-08-14T17:36:43.828Z',
},
],
},
}
export const ValidAndInvalidUploads: Story = {
args: {
validSubrecipientUploads: [
{
id: 6,
upload: {
id: 7,
filename: 'Valid upload 1',
},
createdAt: '2024-08-14T22:04:53.850Z',
},
{
id: 7,
upload: {
id: 8,
filename: 'Valid upload 2',
},
updatedAt: '2024-08-14T22:04:53.850Z',
createdAt: '2024-08-14T22:04:53.850Z',
},
],
invalidSubrecipientUploads: [
{
id: 8,
upload: {
id: 9,
filename: 'Invalid upload 1',
},
createdAt: '2024-08-14T22:04:53.850Z',
updatedAt: '2024-08-14T22:04:53.850Z',
},
{
id: 9,
upload: {
id: 10,
filename: 'Invalid upload 2',
},
createdAt: '2024-08-14T22:04:53.850Z',
updatedAt: '2024-08-14T22:04:53.850Z',
},
],
},
}