aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/components/Inputs.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/components/Inputs.js')
-rw-r--r--frontend/src/components/Inputs.js30
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