Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
use default checkbox
  • Loading branch information
ShMcK committed Feb 2, 2020
commit 27324bc3398d7355766ccdc7f6f9f185ffc315d2
24 changes: 2 additions & 22 deletions web-app/src/components/Checkbox/index.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,5 @@
import * as React from 'react'
import { css, jsx } from '@emotion/core'

const styles = {
box: {
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
},
input: {
border: '1px solid black',
},
loading: {
backgroundColor: 'red',
},
}
import { Checkbox as AlifdCheckbox } from '@alifd/next'

interface Props {
status: 'COMPLETE' | 'INCOMPLETE' | 'ACTIVE'
Expand All @@ -26,13 +12,7 @@ const Checkbox = (props: Props) => {

const checked = props.status === 'COMPLETE'

return (
<div css={styles.box}>
<label>
<input css={styles.input} type="checkbox" checked={checked} onChange={onChange} />
</label>
</div>
)
return <AlifdCheckbox checked={checked} onChange={onChange} />
}

export default Checkbox