Add access token management to profile (#653)

* Add mock-files, API calls and overall tokens-UI

* Added ability to add tokens

* Added token deletion feature (based on timestamp)

* Replace mock-method by real API code

* Add cypress tests

* Added CHANGELOG information

* Un-access-ify i18n

* Set unique react-element key to timestamp of token-creation

* Remove 'now' from changelog

* Use @mrdrogdrog's suggestion for the info label
This commit is contained in:
Erik Michelson 2020-10-10 11:38:32 +02:00 committed by GitHub
parent f72380edd1
commit 053edb9ace
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 302 additions and 4 deletions

View file

@ -3,6 +3,7 @@ import { Button, ButtonProps } from 'react-bootstrap'
import { ForkAwesomeIcon } from '../fork-awesome/fork-awesome-icon'
import { IconName } from '../fork-awesome/types'
import './icon-button.scss'
import { ShowIf } from '../show-if/show-if'
export interface IconButtonProps extends ButtonProps {
icon: IconName
@ -16,9 +17,11 @@ export const IconButton: React.FC<IconButtonProps> = ({ icon, children, border =
<span className="icon-part d-flex align-items-center">
<ForkAwesomeIcon icon={icon} className={'icon'}/>
</span>
<span className="text-part d-flex align-items-center">
{children}
</span>
<ShowIf condition={!!children}>
<span className="text-part d-flex align-items-center">
{children}
</span>
</ShowIf>
</Button>
)
}