diff options
| author | jackyzha0 <[email protected]> | 2020-05-09 23:07:12 -0700 |
|---|---|---|
| committer | jackyzha0 <[email protected]> | 2020-05-09 23:07:12 -0700 |
| commit | 94aab3b5ef21c753595b2748456134ec9a59d7a0 (patch) | |
| tree | 1c68f3f9195ff0660adbf9a97e609bd95bf71a5a /frontend/src/components/Inputs.js | |
| parent | change from npm to yarn (diff) | |
| download | ctrl-v-94aab3b5ef21c753595b2748456134ec9a59d7a0.tar.xz ctrl-v-94aab3b5ef21c753595b2748456134ec9a59d7a0.zip | |
add title component
Diffstat (limited to 'frontend/src/components/Inputs.js')
| -rw-r--r-- | frontend/src/components/Inputs.js | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/frontend/src/components/Inputs.js b/frontend/src/components/Inputs.js new file mode 100644 index 0000000..777e3c6 --- /dev/null +++ b/frontend/src/components/Inputs.js @@ -0,0 +1,30 @@ +import React from 'react'; + +class TitleInput extends React.Component { + render() { + return ( + <input + name="title" + className="lt-shadow" + placeholder="Title" + type="text" + onChange={this.props.onChange} + value={this.props.title} /> + ); + } +} + +class PasteInput extends React.Component { + render() { + return ( + <textarea + name="content" + placeholder="Paste your text here" + value={this.props.content} + onChange={this.props.onChange} + className="lt-shadow" /> + ); + } +} + +export { TitleInput, PasteInput }
\ No newline at end of file |