forked from deriv-com/deriv-app
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRegulationModal.tsx
42 lines (40 loc) · 2.04 KB
/
RegulationModal.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
import React from 'react';
import { Text } from '@deriv-com/ui/dist/components/Text';
import { Modal } from '../../components/Modal';
import { getCFDContents, getOptionsContents } from '../../constants/regulators-modal-content';
import Row from './Row';
const RegulationModal = () => (
<Modal className='w-full md:max-w-[743px]'>
<Modal.Header title='Non-EU and EU regulations' />
<Modal.Content className='p-800 md:p-1200'>
<div className='overflow-x-scroll'>
<table className='border-separate table-auto min-w-[457px] md:min-w-[695px] bg-system-light-primary-background'>
<thead>
<tr className=''>
<th className='sticky z-10 border-solid border-r-75 border-b-75 border-system-light-active-background start-50 min-h-2000 bg-system-light-primary-background' />
<th className='border-solid p-500 min-h-2000 border-r-75 border-y-75 border-system-light-active-background'>
<Text size='sm' weight='bold'>
Non-EU regulation
</Text>
</th>
<th className='border-solid p-500 min-h-2000 border-r-75 border-y-75 border-system-light-active-background'>
<Text size='sm' weight='bold'>
EU regulation
</Text>
</th>
</tr>
</thead>
<tbody>
{getCFDContents.map((row, idx) => (
<Row key={row.id} {...row} idx={idx} />
))}
{getOptionsContents.map((row, idx) => (
<Row key={row.id} {...row} idx={idx} />
))}
</tbody>
</table>
</div>
</Modal.Content>
</Modal>
);
export default RegulationModal;