Skip to content

Commit 7d97b9f

Browse files
committed
make a "requests" arg
1 parent e11ac16 commit 7d97b9f

File tree

2 files changed

+33
-59
lines changed

2 files changed

+33
-59
lines changed

src/compounds/RequestList/RequestList.stories.jsx

Lines changed: 3 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react'
22
import RequestList from './RequestList'
3-
import { defaultImage } from '../../resources/args'
3+
import { requests } from '../../resources/args'
44

55
export default {
66
title: 'Compounds/RequestList',
@@ -11,69 +11,13 @@ const Template = (args) => <RequestList {...args} />
1111

1212
export const Default = Template.bind({})
1313
Default.args = {
14-
requests: [
15-
{
16-
createdAt: 'September 9, 2022',
17-
description: 'Does the Company offer services related to Flow Cytometry?',
18-
href: '/request/F575C4',
19-
id: 1,
20-
img: defaultImage,
21-
status: {
22-
text: 'Vendor Review',
23-
},
24-
title: 'F575C4: Assay Depot Coffee Mug',
25-
updatedAt: 'September 9, 2022 at 9:21 am',
26-
},
27-
{
28-
createdAt: 'November 15, 2022',
29-
// eslint-disable-next-line max-len
30-
description: 'General Information When do you plan to work with this supplier? Urgently Name of supplier: Alisha Supplier web address: http://scientist.com Is this new supplier onboarding request related to any of the following areas: Research area: In Vivo Contact Information Supplier contact name: Alisha Evans Supplier email a...',
31-
href: '/request/706D8F',
32-
id: 2,
33-
img: defaultImage,
34-
status: {
35-
backgroundColor: '#DEAF17',
36-
text: 'Work In Progress',
37-
textColor: '#FFFFFF',
38-
},
39-
title: '706D8F: CRISPR',
40-
updatedAt: 'November 16, 2022 at 4:45 pm',
41-
},
42-
],
14+
requests,
4315
}
4416

4517
export const Alternate = Template.bind({})
4618
Alternate.args = {
4719
backgroundColor: 'secondary',
48-
requests: [
49-
{
50-
createdAt: 'September 9, 2022',
51-
description: 'Does the Company offer services related to Flow Cytometry?',
52-
href: '/request/F575C4',
53-
id: 1,
54-
img: defaultImage,
55-
status: {
56-
text: 'Vendor Review',
57-
},
58-
title: 'F575C4: Assay Depot Coffee Mug',
59-
updatedAt: 'September 9, 2022 at 9:21 am',
60-
},
61-
{
62-
createdAt: 'November 15, 2022',
63-
// eslint-disable-next-line max-len
64-
description: 'General Information When do you plan to work with this supplier? Urgently Name of supplier: Alisha Supplier web address: http://scientist.com Is this new supplier onboarding request related to any of the following areas: Research area: In Vivo Contact Information Supplier contact name: Alisha Evans Supplier email a...',
65-
href: '/request/706D8F',
66-
id: 2,
67-
img: defaultImage,
68-
status: {
69-
backgroundColor: '#DEAF17',
70-
text: 'Work In Progress',
71-
textColor: '#FFFFFF',
72-
},
73-
title: '706D8F: CRISPR',
74-
updatedAt: 'November 16, 2022 at 4:45 pm',
75-
},
76-
],
20+
requests,
7721
}
7822

7923
export const NoRequests = Template.bind({})

src/resources/args.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,3 +214,33 @@ export const navigationLinks = [
214214
path: '/requests',
215215
},
216216
]
217+
218+
export const requests = [
219+
{
220+
createdAt: 'September 9, 2022',
221+
description: 'Does the Company offer services related to Flow Cytometry?',
222+
href: '/request/F575C4',
223+
id: 1,
224+
img,
225+
status: {
226+
text: 'Vendor Review',
227+
},
228+
title: 'F575C4: Assay Depot Coffee Mug',
229+
updatedAt: 'September 9, 2022 at 9:21 am',
230+
},
231+
{
232+
createdAt: 'November 15, 2022',
233+
// eslint-disable-next-line max-len
234+
description: 'General Information When do you plan to work with this supplier? Urgently Name of supplier: Alisha Supplier web address: http://scientist.com Is this new supplier onboarding request related to any of the following areas: Research area: In Vivo Contact Information Supplier contact name: Alisha Evans Supplier email a...',
235+
href: '/request/706D8F',
236+
id: 2,
237+
img,
238+
status: {
239+
backgroundColor: '#DEAF17',
240+
text: 'Work In Progress',
241+
textColor: '#FFFFFF',
242+
},
243+
title: '706D8F: CRISPR',
244+
updatedAt: 'November 16, 2022 at 4:45 pm',
245+
},
246+
]

0 commit comments

Comments
 (0)