Updated classNames constant in components that werent using
• Updated: - classNames constant in components that werent using
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
import React from 'react'
|
||||
import PropTypes from 'prop-types'
|
||||
import classNames from 'classnames/bind'
|
||||
import { CX } from '../../../constants'
|
||||
import Button from '../../../components/button'
|
||||
|
||||
const cx = classNames.bind(_s)
|
||||
|
||||
class ComposeExtraButton extends React.PureComponent {
|
||||
|
||||
render() {
|
||||
@@ -19,7 +17,7 @@ class ComposeExtraButton extends React.PureComponent {
|
||||
buttonRef
|
||||
} = this.props
|
||||
|
||||
const btnClasses = cx({
|
||||
const btnClasses = CX({
|
||||
d: 1,
|
||||
circle: 1,
|
||||
noUnderline: 1,
|
||||
@@ -37,7 +35,7 @@ class ComposeExtraButton extends React.PureComponent {
|
||||
mr2: !children,
|
||||
})
|
||||
|
||||
const iconClasses = cx({
|
||||
const iconClasses = CX({
|
||||
cSecondary: !active,
|
||||
cWhite: active,
|
||||
})
|
||||
|
||||
@@ -4,16 +4,14 @@ import { connect } from 'react-redux'
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||
import { defineMessages, injectIntl } from 'react-intl'
|
||||
import classNames from 'classnames/bind'
|
||||
import { undoUploadCompose, changeUploadCompose } from '../../../actions/compose'
|
||||
import { submitCompose } from '../../../actions/compose';
|
||||
import { submitCompose } from '../../../actions/compose'
|
||||
import { CX } from '../../../constants'
|
||||
import Button from '../../../components/button'
|
||||
import Image from '../../../components/image'
|
||||
import Input from '../../../components/input'
|
||||
import Text from '../../../components/text'
|
||||
|
||||
const cx = classNames.bind(_s)
|
||||
|
||||
class Upload extends ImmutablePureComponent {
|
||||
|
||||
static contextTypes = {
|
||||
@@ -80,7 +78,7 @@ class Upload extends ImmutablePureComponent {
|
||||
const active = this.state.hovered || this.state.focused
|
||||
const description = this.state.dirtyDescription || (this.state.dirtyDescription !== '' && media.get('description')) || ''
|
||||
|
||||
const descriptionContainerClasses = cx({
|
||||
const descriptionContainerClasses = CX({
|
||||
d: 1,
|
||||
posAbs: 1,
|
||||
right0: 1,
|
||||
|
||||
@@ -3,7 +3,6 @@ import PropTypes from 'prop-types'
|
||||
import { connect } from 'react-redux'
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||
import classNames from 'classnames/bind'
|
||||
import { defineMessages, injectIntl } from 'react-intl'
|
||||
import {
|
||||
addPollOption,
|
||||
@@ -11,13 +10,12 @@ import {
|
||||
changePollOption,
|
||||
changePollSettings,
|
||||
} from '../../../actions/compose'
|
||||
import { CX } from '../../../constants'
|
||||
import Button from '../../../components/button'
|
||||
import Text from '../../../components/text'
|
||||
import Select from '../../../components/select'
|
||||
import Input from '../../../components/input'
|
||||
|
||||
const cx = classNames.bind(_s)
|
||||
|
||||
class PollForm extends ImmutablePureComponent {
|
||||
|
||||
handleSelectDuration = (e) => {
|
||||
@@ -136,7 +134,7 @@ class PollFormOption extends ImmutablePureComponent {
|
||||
render() {
|
||||
const { isPollMultiple, title, index, intl } = this.props
|
||||
|
||||
const toggleClasses = cx({
|
||||
const toggleClasses = CX({
|
||||
d: 1,
|
||||
px10: 1,
|
||||
py10: 1,
|
||||
|
||||
Reference in New Issue
Block a user