File tree Expand file tree Collapse file tree 2 files changed +6
-122
lines changed
packages/app/src/app/pages/NewDashboard/Components/Filters/FilterOptions Expand file tree Collapse file tree 2 files changed +6
-122
lines changed Original file line number Diff line number Diff line change 11import React from 'react' ;
2-
3- import { Option as Container , OptionName , CheckBox } from './elements' ;
2+ import { Element , Checkbox , Text } from '@codesandbox/components' ;
43
54interface Props {
65 color : string ;
@@ -21,8 +20,8 @@ export const Option = ({
2120} : Props ) => {
2221 const checkBoxName = `${ id } -checkbox` ;
2322 return (
24- < Container
25- selected = { selected }
23+ < Element
24+ // selected={selected}
2625 onClick = { e => {
2726 e . preventDefault ( ) ;
2827 toggleTemplate ( id , ! selected ) ;
@@ -35,8 +34,8 @@ export const Option = ({
3534 < label htmlFor = { checkBoxName } style = { { display : 'none' } } >
3635 { checkBoxName }
3736 </ label >
38- < CheckBox id = { checkBoxName } color = { color } selected = { selected } />
39- < OptionName style = { { fontWeight : 500 } } > { niceName } </ OptionName >
40- </ Container >
37+ < Checkbox id = { checkBoxName } color = { color } checked = { selected } />
38+ < Text > { niceName } </ Text >
39+ </ Element >
4140 ) ;
4241} ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments