@woosmap/ui 3.116.0 → 3.117.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* eslint-disable jsx-a11y/label-has-associated-control */
|
|
2
2
|
import React, { Component } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
+
import cl from 'classnames';
|
|
4
5
|
|
|
5
6
|
export default class Switch extends Component {
|
|
6
7
|
handleKeyPress = (e) => {
|
|
@@ -49,7 +50,7 @@ export default class Switch extends Component {
|
|
|
49
50
|
<span className="switch__controller" tabIndex={-1} />
|
|
50
51
|
</label>
|
|
51
52
|
</div>
|
|
52
|
-
<span>{text}</span>
|
|
53
|
+
<span className={cl('switch__text', { 'switch__text--disabled': disabled })}>{text}</span>
|
|
53
54
|
</div>
|
|
54
55
|
);
|
|
55
56
|
}
|