Skip to content
This repository has been archived by the owner on Oct 20, 2021. It is now read-only.

Commit

Permalink
refactor(components): remove redundant code in some components
Browse files Browse the repository at this point in the history
  • Loading branch information
Kimi-Gao committed May 30, 2018
1 parent 192bb9e commit d4d947d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/components/Dropdown/DropdownMenu.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PropTypes } from 'prop-types'
import PropTypes from 'prop-types'

const DropdownMenu = () => null

Expand Down
4 changes: 1 addition & 3 deletions src/components/Form/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,5 @@ export {
FormInput,
FormSelect,
Option,
FormTextarea,
Form as Form2,
FormItem as FormItem2
FormTextarea
}
4 changes: 2 additions & 2 deletions src/components/Nav/NavItem.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { Link } from 'react-router'
import classnames from 'classnames'
import cx from 'classnames'
import Icon from '../Icon'

class NavItem extends Component {
Expand Down Expand Up @@ -75,7 +75,7 @@ class NavItem extends Component {
Item = <Link to={href}>{NavIcon}{title}{Toggle}</Link>
}

const classNames = classnames(
const classNames = cx(
'cmui-nav__item',
{
'cmui-nav__item--open': open,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Select/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Select from './Select'
import Option from './Option'

export { Select, Option, Select as Select2, Option as Option2 }
export { Select, Option }

0 comments on commit d4d947d

Please sign in to comment.