File tree Expand file tree Collapse file tree 1 file changed +3
-16
lines changed Expand file tree Collapse file tree 1 file changed +3
-16
lines changed Original file line number Diff line number Diff line change 1
1
import React from "react"
2
2
import { Box , VisuallyHiddenInput , Text } from "@chakra-ui/react"
3
3
4
- // Props
5
4
export interface IProps {
6
5
children ?: React . ReactNode
7
6
callback ?: ( ) => void
@@ -10,7 +9,6 @@ export interface IProps {
10
9
size ?: number
11
10
}
12
11
13
- // Checkbox
14
12
const Checkbox : React . FC < IProps > = ( {
15
13
callback,
16
14
checked,
@@ -19,17 +17,6 @@ const Checkbox: React.FC<IProps> = ({
19
17
size = 2 ,
20
18
...rest
21
19
} ) => {
22
- console . log ( {
23
- checkboxProps : {
24
- callback,
25
- checked,
26
- children,
27
- className,
28
- size,
29
- ...rest ,
30
- } ,
31
- } )
32
-
33
20
const handleClick = ( ) => {
34
21
if ( callback ) {
35
22
callback ( )
@@ -58,14 +45,14 @@ const Checkbox: React.FC<IProps> = ({
58
45
h : `${ size } rem` ,
59
46
minW : `${ size } rem` ,
60
47
bg : `${ checked ? "primary400" : "background" } ` ,
61
- border : "px " ,
48
+ border : "1px " ,
62
49
borderStyle : "solid" ,
63
50
borderColor : "black50" ,
64
51
borderRadius : "3px" ,
65
52
transition : "all 150ms" ,
66
53
_hover : {
67
54
boxShadow : "tableItemBoxShadow" ,
68
- border : "px " ,
55
+ border : "1px " ,
69
56
borderStyle : "solid" ,
70
57
borderColor : "primary600" ,
71
58
transition : "transform 0.1s" ,
@@ -81,7 +68,7 @@ const Checkbox: React.FC<IProps> = ({
81
68
viewBox = "0 0 24 24"
82
69
fill = "none"
83
70
stroke = "white"
84
- strokeWidth = { 0.5 }
71
+ strokeWidth = "2px"
85
72
visibility = { `${ checked ? "visible" : "hidden" } ` }
86
73
>
87
74
< polyline points = "20 6 9 17 4 12" />
You can’t perform that action at this time.
0 commit comments