Skip to content

Commit 67e4ea9

Browse files
committed
checkbox group fixed with v2
1 parent 6815b44 commit 67e4ea9

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/checkboxGroup/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ class CheckboxGroup extends React.Component {
2828
const {
2929
options,
3030
inline,
31+
theme,
3132
} = this.props;
3233

3334
const classNames = cx(styles['checkbox-group']);
@@ -39,6 +40,7 @@ class CheckboxGroup extends React.Component {
3940
{...option}
4041
checked={this.state.isChecked[option.label]}
4142
onClick={this.handleCheckListChange}
43+
theme={theme}
4244
/>
4345
<label className={styles['each-label']}>
4446
{option.label}

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@
88
import React from 'react';
99
import ReactDOM from 'react-dom';
1010

11-
import Checkbox from './checkbox';
1211
import CheckboxGroup from './checkboxGroup';
1312

14-
// import themes from './theme.scss';
13+
import themes from './theme.scss';
1514

1615
const options = [
1716
{ label: 'Male' }, { label: 'female' }, { label: 'alpha' },
@@ -22,6 +21,7 @@ const CheckboxDemo = () => (
2221
<CheckboxGroup
2322
options={options}
2423
inline
24+
theme={themes}
2525
/>
2626
</React.Fragment>
2727
);

src/theme.scss

Whitespace-only changes.

0 commit comments

Comments
 (0)