File tree Expand file tree Collapse file tree 1 file changed +2
-22
lines changed
web-app/src/components/Checkbox Expand file tree Collapse file tree 1 file changed +2
-22
lines changed Original file line number Diff line number Diff line change 11import * as React from 'react'
2- import { css , jsx } from '@emotion/core'
3-
4- const styles = {
5- box : {
6- display : 'flex' ,
7- alignItems : 'center' ,
8- justifyContent : 'center' ,
9- } ,
10- input : {
11- border : '1px solid black' ,
12- } ,
13- loading : {
14- backgroundColor : 'red' ,
15- } ,
16- }
2+ import { Checkbox as AlifdCheckbox } from '@alifd/next'
173
184interface Props {
195 status : 'COMPLETE' | 'INCOMPLETE' | 'ACTIVE'
@@ -26,13 +12,7 @@ const Checkbox = (props: Props) => {
2612
2713 const checked = props . status === 'COMPLETE'
2814
29- return (
30- < div css = { styles . box } >
31- < label >
32- < input css = { styles . input } type = "checkbox" checked = { checked } onChange = { onChange } />
33- </ label >
34- </ div >
35- )
15+ return < AlifdCheckbox checked = { checked } onChange = { onChange } />
3616}
3717
3818export default Checkbox
You can’t perform that action at this time.
0 commit comments