Skip to content

Commit c674f35

Browse files
committed
remove elements
1 parent cfc34ba commit c674f35

File tree

2 files changed

+6
-122
lines changed

2 files changed

+6
-122
lines changed

packages/app/src/app/pages/NewDashboard/Components/Filters/FilterOptions/Option.tsx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React from 'react';
2-
3-
import { Option as Container, OptionName, CheckBox } from './elements';
2+
import { Element, Checkbox, Text } from '@codesandbox/components';
43

54
interface 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
};

packages/app/src/app/pages/NewDashboard/Components/Filters/FilterOptions/elements.ts

Lines changed: 0 additions & 115 deletions
This file was deleted.

0 commit comments

Comments
 (0)