diff options
author | Brandon Millman <brandon@0xproject.com> | 2018-06-30 03:01:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-30 03:01:13 +0800 |
commit | cc12bc9247d432b7f1248c8c0aaf9f905fa58d6d (patch) | |
tree | e17104279cc60566fd8443ba7805ec7e64380f84 /packages/website/ts/components/ui/circle.tsx | |
parent | 50556e26098a9720f933153697008fb4ea8ececb (diff) | |
parent | ddec01e6c1d9cfeaf5b01278b1b796644705433b (diff) | |
download | dexon-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.tsx | 16 |
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> + ); +}; |