Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit 30fd003

Browse files
authored
Merge pull request #173 from sanjam-deriv/list
2 parents 71bdc29 + cfb869b commit 30fd003

File tree

2 files changed

+19
-7
lines changed

2 files changed

+19
-7
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@use 'src/styles/utility' as *;
2+
3+
.content {
4+
padding: 0 rem(3.5) 0 rem(3.5);
5+
}

src/features/dashboard/components/ApiTokenTable/CopyTokenDialog/index.tsx

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React, { useMemo, useCallback } from 'react';
22
import { Modal } from '@deriv/ui';
33
import { TModalActionButton } from '@deriv/ui/dist/types/src/components/core/modal/types';
4+
import styles from './CopyTokenDialog.module.scss';
45

56
type TCopyTokenDialog = {
67
setToggleModal: React.Dispatch<React.SetStateAction<boolean>>;
@@ -45,13 +46,19 @@ const CopyTokenDialog = ({ setToggleModal, copyToken }: TCopyTokenDialog) => {
4546
<Modal.Portal>
4647
<div className='modal-overlay'>
4748
<Modal.Overlay />
48-
<Modal.DialogContent
49-
has_close_button
50-
content={
51-
'Be careful who you share this token with. Anyone with this token can perform the following actions on your account: Add accounts, Create or delete API tokens for trading and withdrawals, Modify account settings.'
52-
}
53-
action_buttons={actionButtons}
54-
/>
49+
<Modal.PageContent has_close_button action_buttons={actionButtons}>
50+
<div className={styles.content}>
51+
Be careful who you share this token with. Anyone with this token can perform the
52+
following actions on your account behalf
53+
<ul>
54+
<li>Add accounts</li>
55+
56+
<li>Create or delete API tokens for trading and withdrawals</li>
57+
58+
<li>Modify account settings</li>
59+
</ul>
60+
</div>
61+
</Modal.PageContent>
5562
</div>
5663
</Modal.Portal>
5764
</Modal>

0 commit comments

Comments
 (0)