-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
67 lines (65 loc) · 1.74 KB
/
config.js
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
export const config = [
{
title: 'Personal information',
description:
'Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.',
fields: [
{ label: 'Name', id: 'name', type: 'text' },
{ label: 'Surname', id: 'surname', type: 'text' },
{ label: 'Email', id: 'email', type: 'text' },
{ label: 'Address', id: 'address', type: 'text' },
],
},
{
title: 'Choose products',
description:
'Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.',
fields: [
{ id: 'iShsj323', type: 'product' },
{ id: 'usiaHUS7', type: 'product' },
{ id: 'BCsghe32', type: 'product' },
{ id: 'XNjssh19', type: 'product' },
],
},
{
title: 'Additional data',
description:
'Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.',
fields: [
{ label: 'Data 1', id: 'data1', type: 'text' },
{ label: 'Data 2', id: 'data2', type: 'text' },
{ label: 'Data 3', id: 'data3', type: 'text' },
],
},
];
export const products = [
{
id: 'iShsj323',
title: 'Product 4',
price: 99.8,
description: 'Product n. 4',
},
{
id: 'usiaHUS7',
title: 'Product 2',
price: 105.76,
description: 'Product n. 2',
},
{
id: 'XNjssh19',
title: 'Product 3',
price: 80.5,
description: 'Product n. 3',
},
{
id: 'BCsghe32',
title: 'Product 1',
price: 112.99,
description: 'Product n. 1',
},
];
export const validationRules = [
['email', { required: true, includes: '@', min: 5 }],
['name', { required: true, min: 5 }],
['surname', { required: true }],
];