File tree Expand file tree Collapse file tree 1 file changed +11
-43
lines changed Expand file tree Collapse file tree 1 file changed +11
-43
lines changed Original file line number Diff line number Diff line change 1
- // import Button from './button';
2
- // import Card from './card';
3
- // import Checkbox from './checkbox';
4
- // import CheckboxGroup from './checkboxGroup';
5
- // import Toggle from './toggle';
6
-
7
- // export default {
8
- // Button,
9
- // Card,
10
- // Checkbox,
11
- // CheckboxGroup,
12
- // Toggle,
13
- // };
14
-
15
- import React from 'react' ;
16
- import ReactDOM from 'react-dom' ;
1
+ import Button from './button' ;
2
+ import Card from './card' ;
3
+ import Checkbox from './checkbox' ;
4
+ import CheckboxGroup from './checkboxGroup' ;
17
5
import Toggle from './toggle' ;
18
- import themes from './theme.scss' ;
19
-
20
- class ToggleDisplay extends React . Component {
21
- constructor ( props ) {
22
- super ( props ) ;
23
-
24
- this . state = {
25
- toggled : false ,
26
- } ;
27
- }
28
-
29
- handleToggle = ( ) => {
30
- this . setState ( {
31
- toggled : ! this . state . toggled ,
32
- } ) ;
33
- }
34
6
35
- render ( ) {
36
- return (
37
- < Toggle
38
- toggled = { this . state . toggled }
39
- onClick = { this . handleToggle }
40
- theme = { themes }
41
- />
42
- ) ;
43
- }
44
- }
7
+ export default {
8
+ Button,
9
+ Card,
10
+ Checkbox,
11
+ CheckboxGroup,
12
+ Toggle,
13
+ } ;
45
14
46
- ReactDOM . render ( < ToggleDisplay /> , document . getElementById ( 'index' ) ) ;
You can’t perform that action at this time.
0 commit comments