feat(ui): ui change for create access token EE-3541 (#7366)

* ui change for create access token
pull/7391/head
Richard Wei 2 years ago committed by GitHub
parent 0ba10b44ec
commit d4d80ed8f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,6 +1,8 @@
import { PropsWithChildren } from 'react';
import clsx from 'clsx';
import { Icon } from '@@/Icon';
import { Button } from '../Button';
import styles from './CopyButton.module.css';
@ -31,7 +33,7 @@ export function CopyButton({
title="Copy Value"
type="button"
>
<i className="fa fa-copy space-right" aria-hidden="true" /> {children}
<Icon icon="copy" feather /> {children}
</Button>
<span
@ -41,7 +43,7 @@ export function CopyButton({
'space-left'
)}
>
<i className="fa fa-check" aria-hidden="true" />
<Icon icon="check" feather />
{displayText && <span className="space-left">{displayText}</span>}
</span>
</div>

@ -74,18 +74,16 @@ export function CreateAccessToken({
/>
</FormControl>
<div className="row mt-5">
<div className="col-sm-12">
<Button
disabled={!!errorText || !!accessToken}
onClick={() => generateAccessToken()}
>
{t('Add access token')}
</Button>
</div>
<Button
disabled={!!errorText || !!accessToken}
onClick={() => generateAccessToken()}
>
{t('Add access token')}
</Button>
</div>
</div>
{accessToken && (
<>
<div className="mt-5">
<FormSectionTitle>
<Trans ns={translationNS}>New access token</Trans>
</FormSectionTitle>
@ -106,7 +104,7 @@ export function CreateAccessToken({
>
<Trans ns={translationNS}>Done</Trans>
</Button>
</>
</div>
)}
</WidgetBody>
</Widget>

Loading…
Cancel
Save