Skip to content

Commit

Permalink
styling change
Browse files Browse the repository at this point in the history
  • Loading branch information
Agrim Jain authored and Agrim Jain committed May 23, 2024
1 parent bd9849d commit a02ed59
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export const TokenCreationDialogSuccess = ({
}: ITokenCreationDialogSuccessProps) => {
const { tokens, lastTokenDisplayName } = useApiToken();
const [latestToken, setLatestToken] = useState('');
// const has_admin_scope = cell.row?.original?.scopes?.includes('admin');

const onOpenChange = useCallback(
(open: boolean) => {
Expand Down Expand Up @@ -43,25 +42,22 @@ export const TokenCreationDialogSuccess = ({
<Modal.Portal>
<div className='modal-overlay'>
<Modal.Overlay />
<Modal.PageContent
title={'Token created successfully!'}
has_close_button
className={styles.wrapper}
>
<Modal.PageContent className={styles.wrapper}>
<div className={styles.title}>Token created successfully!</div>
<div className={styles.modal}>
<p>
Please save this token key. For security reasons, it can&apos;t be viewed or copied
again. If you lose this key, you&apos;ll need to generate a new token.
</p>
</div>
<div className={styles.button_wrapper}>
<div className={styles.textField}>
<div>
<div className={styles.key}>Key</div>
{latestToken}
</div>
<CopyButton value={latestToken} has_admin={false} />
<div className={styles.textField}>
<div>
<div className={styles.key}>Key</div>
{latestToken}
</div>
<CopyButton value={latestToken} has_admin={false} />
</div>
<div className={styles.button_wrapper}>
<Button color='primary' onClick={handleToggle} className={styles.btn}>
OK
</Button>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
@use 'src/styles/utility' as *;

.wrapper {
width: rem(53);
padding: rem(3.2) !important;
text-align: center !important;
width: rem(51.2);
height: rem(36);
padding: 0px 32px 32px 32px !important;
margin-left: rem(10) !important;
}

.title {
color: var(--core-color-solid-slate-1400, #000);
text-align: center;
font-family: 'IBM Plex Sans';
font-size: 16px;
font-style: normal;
font-weight: 700;
line-height: 24px;
top: 0px;
padding: 0px 0px !important;
}

.modal {
Expand All @@ -15,18 +28,18 @@
margin-top: 32px;
line-height: 24px;
margin-bottom: 16px;
text-align: left !important;
@media (max-width: 992px) {
padding: 0 0 0 rem(1.6);
}
text-align: left;
// @media (max-width: 992px) {
// padding: 0 0 0 rem(1.6);
// }
}

.textField {
display: flex;
justify-content: space-between;
align-items: center;
width: 268px;
text-align: left !important;
width: 448px;
text-align: left;
gap: 4px;
border-radius: 8px;
padding: 4px 16px;
Expand All @@ -40,18 +53,21 @@
line-height: 18px;
}
.button_wrapper {
gap: 24px;
width: 100%;
align-items: center !important;
display: flex;
padding-top: 48px;
}

.btn {
display: block;
width: 156px !important;
height: 48px;
display: flex;
width: 124px !important;
height: 24px;
padding: 0px 16px;
justify-content: center;
align-items: center;
gap: 8px;
border-radius: 16px !important;
background: var(--core-color-solid-coral-700, #ff444f);
margin-left: 150px;
}

0 comments on commit a02ed59

Please sign in to comment.