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/allowance_state_toggle.tsx | |
parent | 8e7c395f59666b97453f09354e3f44471b5fc112 (diff) | |
download | dexon-sol-tools-cdcf624e9e6fe671611b239f903c2f2cb3097e7c.tar dexon-sol-tools-cdcf624e9e6fe671611b239f903c2f2cb3097e7c.tar.gz dexon-sol-tools-cdcf624e9e6fe671611b239f903c2f2cb3097e7c.tar.bz2 dexon-sol-tools-cdcf624e9e6fe671611b239f903c2f2cb3097e7c.tar.lz dexon-sol-tools-cdcf624e9e6fe671611b239f903c2f2cb3097e7c.tar.xz dexon-sol-tools-cdcf624e9e6fe671611b239f903c2f2cb3097e7c.tar.zst dexon-sol-tools-cdcf624e9e6fe671611b239f903c2f2cb3097e7c.zip |
Have basic lock and check working in walelt
Diffstat (limited to 'packages/website/ts/components/inputs/allowance_state_toggle.tsx')
-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'} /> +); |