Skip to content

Commit 38b83cc

Browse files
committed
⚗ Update theem component to file.module.scss set-2
Checkbox, CheckboxGroup, Chip, Drawer, Menu, Modal, Multiselect
1 parent 4e83b19 commit 38b83cc

File tree

14 files changed

+16
-14
lines changed

14 files changed

+16
-14
lines changed

lib/checkbox/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import cx from 'classnames';
33
import { themr } from 'react-css-themr';
44
import PropTypes from 'prop-types';
5-
import defaultTheme from './theme.scss';
5+
import defaultTheme from './theme.module.scss';
66

77
const Checkbox = ({
88
label,
@@ -27,7 +27,7 @@ const Checkbox = ({
2727
type="checkbox"
2828
{...props}
2929
/>
30-
<span className={`${cx({ [theme['check-item-inverted']]: inverted && checked })} check-item`} />
30+
<span className={cx({ [theme['check-item-inverted']]: inverted && checked }, theme['check-item'])} />
3131
</span>
3232
{label && <span className={theme.label}>{label}</span>}
3333
</span>
File renamed without changes.

lib/checkboxGroup/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
33
import cx from 'classnames';
44
import Checkbox from '../checkbox';
55

6-
import defaultTheme from './theme.scss';
6+
import defaultTheme from './theme.module.scss';
77

88
class CheckboxGroup extends React.Component {
99
constructor(props) {
@@ -35,7 +35,7 @@ class CheckboxGroup extends React.Component {
3535
theme,
3636
} = this.props;
3737

38-
const classNames = cx(theme['checkbox-group'], { inline });
38+
const classNames = cx(theme['checkbox-group'], { [theme.inline]: inline });
3939
return (
4040
<div className={classNames}>
4141
{options.map(option => (
File renamed without changes.

lib/chip/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
33
import { themr } from 'react-css-themr';
44
import classnames from 'classnames';
55
import { IoMdClose } from 'react-icons/io';
6-
import defaultTheme from './theme.scss';
6+
import defaultTheme from './theme.module.scss';
77

88
const DeleteIcon = ({ classes, handleClick }) => {
99
function handleDeleteClick(e) {
@@ -35,7 +35,7 @@ const Chip = ({
3535
theme.chip,
3636
theme[size],
3737
theme[outlined ? `${color}Outlined` : color],
38-
avatarElement && 'avatarMarginLeft',
38+
avatarElement && theme.avatarMarginLeft,
3939
{ [theme.clickable]: Element === 'a' },
4040
className,
4141
);
File renamed without changes.

lib/drawer/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { Component } from 'react';
22
import PropTypes from 'prop-types';
33
import cx from 'classnames';
44
import { themr } from 'react-css-themr';
5-
import defaultTheme from './theme.scss';
5+
import defaultTheme from './theme.module.scss';
66

77
class Drawer extends Component {
88
constructor(props) {
File renamed without changes.

lib/menu/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { Component } from 'react';
22
import PropTypes from 'prop-types';
33
import { themr } from 'react-css-themr';
44
import cx from 'classnames';
5-
import defaultTheme from './theme.scss';
5+
import defaultTheme from './theme.module.scss';
66

77
class Menu extends Component {
88
constructor(props) {
File renamed without changes.

0 commit comments

Comments
 (0)