aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/components/Inputs.js
blob: 777e3c6eb5fc02f5a0bedd17162c1ce0fe5fb2ea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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 }