Skip to content

Commit

Permalink
Decorators to hoc
Browse files Browse the repository at this point in the history
  • Loading branch information
glennreyes committed Jul 19, 2018
1 parent 9008e80 commit fa452bf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/components/grape-browser/GrapeBrowser.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ const browserWithInput = {
/**
* Uses all types of auto completes to provide end component.
*/
@injectSheet(style)
export default class GrapeBrowser extends Component {
class GrapeBrowser extends Component {
static propTypes = {
isLoading: PropTypes.bool,
placeholder: PropTypes.string,
Expand Down Expand Up @@ -479,3 +478,5 @@ export default class GrapeBrowser extends Component {
)
}
}

export default injectSheet(style)(GrapeBrowser)
5 changes: 3 additions & 2 deletions src/components/grape-input/GrapeInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ import HighlightedInput from '../highlighted-input/HighlightedInput'

import { toMarkdown, fromMarkdown, getEmojiObjects } from './utils'

@injectSheet(style)
export default class GrapeInput extends Component {
class GrapeInput extends Component {
static propTypes = {
onSubmit: PropTypes.func,
onAbort: PropTypes.func,
Expand Down Expand Up @@ -197,3 +196,5 @@ export default class GrapeInput extends Component {
)
}
}

export default injectSheet(style)(GrapeInput)

0 comments on commit fa452bf

Please sign in to comment.