diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-07-20 23:52:14 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-07-20 23:52:14 +0800 |
commit | cdcf624e9e6fe671611b239f903c2f2cb3097e7c (patch) | |
tree | b45c95d29d355f385583f182a3faac2b3a7661c9 /packages/website/ts/components/inputs | |
parent | 8e7c395f59666b97453f09354e3f44471b5fc112 (diff) | |
download | dexon-0x-contracts-cdcf624e9e6fe671611b239f903c2f2cb3097e7c.tar.gz dexon-0x-contracts-cdcf624e9e6fe671611b239f903c2f2cb3097e7c.tar.zst dexon-0x-contracts-cdcf624e9e6fe671611b239f903c2f2cb3097e7c.zip |
Have basic lock and check working in walelt
Diffstat (limited to 'packages/website/ts/components/inputs')
-rw-r--r-- | packages/website/ts/components/inputs/allowance_state_toggle.tsx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/website/ts/components/inputs/allowance_state_toggle.tsx b/packages/website/ts/components/inputs/allowance_state_toggle.tsx new file mode 100644 index 000000000..7e8628e64 --- /dev/null +++ b/packages/website/ts/components/inputs/allowance_state_toggle.tsx @@ -0,0 +1,10 @@ +import * as React from 'react'; +import { AllowanceStateView } from 'ts/components/ui/allowance_state_view'; + +export interface AllowanceStateToggleProps {} + +const flip = () => Math.random() < 0.5; + +export const AllowanceStateToggle: React.StatelessComponent<AllowanceStateToggleProps> = () => ( + <AllowanceStateView allowanceState={flip() ? 'locked' : 'unlocked'} /> +); |