diff options
author | eug-vs <eug-vs@keemail.me> | 2021-03-14 01:18:16 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2021-03-14 01:18:16 +0300 |
commit | 05ccf76dbbb54e52ae81a469f91b3660057058dc (patch) | |
tree | d0509803f8e9d092d7e423c439d67da8e0ca97ec /src/components/Button.tsx | |
parent | c6fac69a8273ce20216002925deb0a2b5425dc25 (diff) | |
download | commercel-ui-05ccf76dbbb54e52ae81a469f91b3660057058dc.tar.gz |
style: install eslint
Diffstat (limited to 'src/components/Button.tsx')
-rw-r--r-- | src/components/Button.tsx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/components/Button.tsx b/src/components/Button.tsx index 55ceda6..5fd69b2 100644 --- a/src/components/Button.tsx +++ b/src/components/Button.tsx @@ -7,14 +7,16 @@ interface Props { const styles = { - contained: "bg-black text-white", - outlined: "border-2 border-black" + contained: 'bg-black text-white', + outlined: 'border-2 border-black', }; const Button: React.FC<Props> = ({ children, variant = 'contained' }) => { - return ( - <button className={`p-4 m-3 font-bold tracking-wide hover:underline focus:outline-none ${styles[variant]}`}> + <button + type="button" + className={`p-4 m-3 font-bold tracking-wide hover:underline focus:outline-none ${styles[variant]}`} + > {children} </button> ); |