-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(Textarea): rename TextArea, add doc block
- Loading branch information
1 parent
5a7fdc0
commit 9074a2b
Showing
3 changed files
with
21 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,18 @@ | ||
import React, { Component, PropTypes } from 'react' | ||
import React from 'react' | ||
import { META } from '../../lib' | ||
|
||
export default class Textarea extends Component { | ||
static propTypes = { | ||
className: PropTypes.string, | ||
label: PropTypes.string, | ||
} | ||
|
||
static _meta = { | ||
name: 'Textarea', | ||
type: META.TYPES.ADDON, | ||
} | ||
/** | ||
* A simple <textarea> wrapper for use in Form.TextArea. | ||
* We may add more features to the TextArea in the future. | ||
* @see Form | ||
*/ | ||
function TextArea(props) { | ||
return <textarea {...props} /> | ||
} | ||
|
||
render() { | ||
return ( | ||
<textarea {...this.props} /> | ||
) | ||
} | ||
TextArea._meta = { | ||
name: 'TextArea', | ||
type: META.TYPES.ADDON, | ||
} | ||
|
||
export default TextArea |
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,4 +1,4 @@ | ||
export { default as Confirm } from './Confirm/Confirm' | ||
export { default as Radio } from './Radio/Radio' | ||
export { default as Select } from './Select/Select' | ||
export { default as Textarea } from './Textarea/Textarea' | ||
export { default as TextArea } from './TextArea/TextArea' |
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