Updated classNames constant in components that werent using

• Updated:
- classNames constant in components that werent using
This commit is contained in:
mgabdev
2020-08-18 19:39:06 -05:00
parent 99982c0391
commit 2f4700e89f
23 changed files with 64 additions and 112 deletions

View File

@@ -1,12 +1,9 @@
import React from 'react'
import PropTypes from 'prop-types'
import { NavLink } from 'react-router-dom'
import classNames from 'classnames/bind'
import { CX } from '../constants'
import Icon from './icon'
// Bind CSS Modules global variable `_s` to classNames module
const cx = classNames.bind(_s)
// Define colors for enumeration for Button component `color`, `backgroundColor` props
const COLORS = {
primary: 'primary',
@@ -108,7 +105,7 @@ class Button extends React.PureComponent {
} = this.props
// Style the component according to props
const classes = noClasses ? className : cx(className, {
const classes = noClasses ? className : CX(className, {
d: 1,
noUnderline: 1,
font: 1,