aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components/inputs
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-07-20 23:52:14 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-07-20 23:52:14 +0800
commitcdcf624e9e6fe671611b239f903c2f2cb3097e7c (patch)
treeb45c95d29d355f385583f182a3faac2b3a7661c9 /packages/website/ts/components/inputs
parent8e7c395f59666b97453f09354e3f44471b5fc112 (diff)
downloaddexon-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.tsx10
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'} />
+);