diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-07-21 00:55:08 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-07-21 00:55:08 +0800 |
commit | 3bf12a98a7062f02edb1cd3f4e1209ac34dc55ec (patch) | |
tree | ec201f62a2cfc33bcf3a30ed9a5d5b188c63f5aa /packages/website/ts/components/ui | |
parent | f27084ced46d88164b526ea5f281637ca87d0583 (diff) | |
download | dexon-0x-contracts-3bf12a98a7062f02edb1cd3f4e1209ac34dc55ec.tar dexon-0x-contracts-3bf12a98a7062f02edb1cd3f4e1209ac34dc55ec.tar.gz dexon-0x-contracts-3bf12a98a7062f02edb1cd3f4e1209ac34dc55ec.tar.bz2 dexon-0x-contracts-3bf12a98a7062f02edb1cd3f4e1209ac34dc55ec.tar.lz dexon-0x-contracts-3bf12a98a7062f02edb1cd3f4e1209ac34dc55ec.tar.xz dexon-0x-contracts-3bf12a98a7062f02edb1cd3f4e1209ac34dc55ec.tar.zst dexon-0x-contracts-3bf12a98a7062f02edb1cd3f4e1209ac34dc55ec.zip |
Implement tooltips
Diffstat (limited to 'packages/website/ts/components/ui')
-rw-r--r-- | packages/website/ts/components/ui/allowance_state_view.tsx | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/packages/website/ts/components/ui/allowance_state_view.tsx b/packages/website/ts/components/ui/allowance_state_view.tsx index fce06c664..eecf88c34 100644 --- a/packages/website/ts/components/ui/allowance_state_view.tsx +++ b/packages/website/ts/components/ui/allowance_state_view.tsx @@ -3,7 +3,11 @@ import CircularProgress from 'material-ui/CircularProgress'; import * as React from 'react'; import { styled } from 'ts/style/theme'; -export type AllowanceState = 'locked' | 'unlocked' | 'loading'; +export enum AllowanceState { + Locked, + Unlocked, + Loading, +} export interface AllowanceStateViewProps { allowanceState: AllowanceState; @@ -11,11 +15,11 @@ export interface AllowanceStateViewProps { export const AllowanceStateView: React.StatelessComponent<AllowanceStateViewProps> = ({ allowanceState }) => { switch (allowanceState) { - case 'locked': + case AllowanceState.Locked: return renderLock(); - case 'unlocked': + case AllowanceState.Unlocked: return renderCheck(); - case 'loading': + case AllowanceState.Loading: return <CircularProgress size={15} thickness={2} />; default: return null; |