-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhancement rename action props with
on
prefix, and action methods …
…with `handle` prefix
- Loading branch information
Christopher Joe
committed
Sep 19, 2017
1 parent
d477850
commit f607547
Showing
28 changed files
with
295 additions
and
328 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
import React, { Component } from 'react'; | ||
import React from 'react'; | ||
import OptionField from '../OptionsetField/OptionField'; | ||
import fieldHolder from 'components/FieldHolder/FieldHolder'; | ||
|
||
class CheckboxField extends Component { | ||
render() { | ||
// Build standard checkbox with fieldholder | ||
const FieldHolder = fieldHolder(OptionField); | ||
const CheckboxField = () => { | ||
// Build standard checkbox with fieldholder | ||
const FieldHolder = fieldHolder(OptionField); | ||
|
||
// set to not show field holder labels, as checkbox already generates a label | ||
return <FieldHolder {...this.props} type="checkbox" hideLabels />; | ||
} | ||
} | ||
// set to not show field holder labels, as checkbox already generates a label | ||
return <FieldHolder {...this.props} type="checkbox" hideLabels />; | ||
}; | ||
|
||
export default CheckboxField; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.