Changeset View
Changeset View
Standalone View
Standalone View
web/components/checkbox.react.js
- This file was added.
// @flow | |||||
import * as React from 'react'; | |||||
import css from './checkbox.css'; | |||||
type Props = { | |||||
+checked: boolean, | |||||
}; | |||||
function Checkbox(props: Props): React.Node { | |||||
tomek: We already have a different kind of checkbox in the codebase (used on calendar tab -> filters). | |||||
const { checked } = props; | |||||
return ( | |||||
<input | |||||
className={css.checkbox} | |||||
type="checkbox" | |||||
checked={checked} | |||||
readOnly | |||||
tomekUnsubmitted Not Done Inline ActionsWe should definitely have this as a prop instead of hardcoding it tomek: We should definitely have this as a prop instead of hardcoding it | |||||
/> | |||||
); | |||||
} | |||||
export default Checkbox; |
We already have a different kind of checkbox in the codebase (used on calendar tab -> filters). It looks differently, so probably can't be reused, but definitely it's worth to take a look.