Skip to content

Commit a174cd2

Browse files
committed
⚗ Update theme file-extension set -5
Table, Toggle, Tooltip
1 parent 4887b56 commit a174cd2

File tree

6 files changed

+6
-7
lines changed

6 files changed

+6
-7
lines changed

lib/table/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import classnames 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
class Table extends React.Component {
88
state = {
@@ -55,15 +55,15 @@ class Table extends React.Component {
5555
<span
5656
className={
5757
(isCurrentKey && this.state[`${key}Ascending`])
58-
? 'sortedAscending'
58+
? theme.sortedAscending
5959
: null
6060
}
6161
onClick={() => this.sortAscending(key)}
6262
/>
6363
<span
6464
className={
6565
(isCurrentKey && this.state[`${key}Descending`])
66-
? 'sortedDescending'
66+
? theme.sortedDescending
6767
: null
6868
}
6969
onClick={() => this.sortDescending(key)}
File renamed without changes.

lib/toggle/index.js

Lines changed: 1 addition & 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 Toggle = ({
88
label,
@@ -28,7 +28,6 @@ const Toggle = ({
2828
onClick={() => onClick(label, value)}
2929
{...props}
3030
/>
31-
<span className="toggle-item" />
3231
</label>
3332
);
3433
};
File renamed without changes.

lib/tooltip/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 PropTypes from 'prop-types';
33
import { themr } from 'react-css-themr';
44
import classnames from 'classnames';
5-
import defaultTheme from './theme.scss';
5+
import defaultTheme from './theme.module.scss';
66

77
class Tooltip extends React.Component {
88
state = { tooltipActive: false };
@@ -43,7 +43,7 @@ class Tooltip extends React.Component {
4343
{
4444
this.state.tooltipActive && (
4545
<div className={theme.tip} id="tip">
46-
<div className={classnames(theme.tooltipContent, { top })}>
46+
<div className={classnames(theme.tooltipContent, { [theme.top]: top })}>
4747
{tooltipText}
4848
</div>
4949
</div>
File renamed without changes.

0 commit comments

Comments
 (0)