aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components/ui/check_mark.tsx
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-12-01 02:25:36 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-12-01 02:25:36 +0800
commite65096ee7af7c6d442b5e106db0a07652cc5e047 (patch)
treee43fba0c7aab2154e9c7d21817aa014088c71334 /packages/website/ts/components/ui/check_mark.tsx
parentf1354632a1a2915159f6d662f90b68fe8c3bab38 (diff)
downloaddexon-0x-contracts-e65096ee7af7c6d442b5e106db0a07652cc5e047.tar
dexon-0x-contracts-e65096ee7af7c6d442b5e106db0a07652cc5e047.tar.gz
dexon-0x-contracts-e65096ee7af7c6d442b5e106db0a07652cc5e047.tar.bz2
dexon-0x-contracts-e65096ee7af7c6d442b5e106db0a07652cc5e047.tar.lz
dexon-0x-contracts-e65096ee7af7c6d442b5e106db0a07652cc5e047.tar.xz
dexon-0x-contracts-e65096ee7af7c6d442b5e106db0a07652cc5e047.tar.zst
dexon-0x-contracts-e65096ee7af7c6d442b5e106db0a07652cc5e047.zip
feat: implement multi token select component
Diffstat (limited to 'packages/website/ts/components/ui/check_mark.tsx')
-rw-r--r--packages/website/ts/components/ui/check_mark.tsx31
1 files changed, 31 insertions, 0 deletions
diff --git a/packages/website/ts/components/ui/check_mark.tsx b/packages/website/ts/components/ui/check_mark.tsx
new file mode 100644
index 000000000..86e427c8b
--- /dev/null
+++ b/packages/website/ts/components/ui/check_mark.tsx
@@ -0,0 +1,31 @@
+import * as React from 'react';
+
+import { colors } from '@0x/react-shared';
+
+export interface CheckMarkProps {
+ color?: string;
+ isChecked?: boolean;
+}
+
+export const CheckMark: React.StatelessComponent<CheckMarkProps> = ({ color, isChecked }) => (
+ <svg width="17" height="17" viewBox="0 0 17 17" fill="none" xmlns="http://www.w3.org/2000/svg">
+ <circle
+ cx="8.5"
+ cy="8.5"
+ r="8.5"
+ fill={isChecked ? color : 'white'}
+ stroke={isChecked ? undefined : '#CCCCCC'}
+ />
+ <path
+ d="M2.5 4.5L1.79289 5.20711L2.5 5.91421L3.20711 5.20711L2.5 4.5ZM-0.707107 2.70711L1.79289 5.20711L3.20711 3.79289L0.707107 1.29289L-0.707107 2.70711ZM3.20711 5.20711L7.70711 0.707107L6.29289 -0.707107L1.79289 3.79289L3.20711 5.20711Z"
+ transform="translate(5 6.5)"
+ fill="white"
+ />
+ </svg>
+);
+
+CheckMark.displayName = 'Check';
+
+CheckMark.defaultProps = {
+ color: colors.mediumBlue,
+};