aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components/ui/circle.tsx
diff options
context:
space:
mode:
authorBrandon Millman <brandon@0xproject.com>2018-06-30 03:01:13 +0800
committerGitHub <noreply@github.com>2018-06-30 03:01:13 +0800
commitcc12bc9247d432b7f1248c8c0aaf9f905fa58d6d (patch)
treee17104279cc60566fd8443ba7805ec7e64380f84 /packages/website/ts/components/ui/circle.tsx
parent50556e26098a9720f933153697008fb4ea8ececb (diff)
parentddec01e6c1d9cfeaf5b01278b1b796644705433b (diff)
downloaddexon-sol-tools-cc12bc9247d432b7f1248c8c0aaf9f905fa58d6d.tar.gz
dexon-sol-tools-cc12bc9247d432b7f1248c8c0aaf9f905fa58d6d.tar.zst
dexon-sol-tools-cc12bc9247d432b7f1248c8c0aaf9f905fa58d6d.zip
Merge pull request #792 from 0xProject/feature/website/wallet-polish
Various wallet polish items
Diffstat (limited to 'packages/website/ts/components/ui/circle.tsx')
-rw-r--r--packages/website/ts/components/ui/circle.tsx16
1 files changed, 16 insertions, 0 deletions
diff --git a/packages/website/ts/components/ui/circle.tsx b/packages/website/ts/components/ui/circle.tsx
new file mode 100644
index 000000000..75103d066
--- /dev/null
+++ b/packages/website/ts/components/ui/circle.tsx
@@ -0,0 +1,16 @@
+import * as React from 'react';
+
+export interface CircleProps {
+ className?: string;
+ diameter: number;
+ fillColor: string;
+}
+
+export const Circle: React.StatelessComponent<CircleProps> = ({ className, diameter, fillColor }) => {
+ const radius = diameter / 2;
+ return (
+ <svg className={className} height={diameter} width={diameter}>
+ <circle cx={radius} cy={radius} r={radius} fill={fillColor} />
+ </svg>
+ );
+};