diff options
| author | Jacky Zhao <[email protected]> | 2020-05-10 15:48:39 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-05-10 15:48:39 -0700 |
| commit | b6ed0911033e0b707159b9e64fd7f356df217c19 (patch) | |
| tree | 9b437efad909ea324f039c555d52d150d92a4583 /frontend/src/components/PasteArea.js | |
| parent | Merge pull request #10 from jackyzha0/react (diff) | |
| parent | add password stuff + expiry stuff (diff) | |
| download | ctrl-v-b6ed0911033e0b707159b9e64fd7f356df217c19.tar.xz ctrl-v-b6ed0911033e0b707159b9e64fd7f356df217c19.zip | |
Merge pull request #11 from jackyzha0/pass_and_expiry
add password stuff + expiry stuff
Diffstat (limited to 'frontend/src/components/PasteArea.js')
| -rw-r--r-- | frontend/src/components/PasteArea.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/frontend/src/components/PasteArea.js b/frontend/src/components/PasteArea.js index 95ef6d8..4232c7f 100644 --- a/frontend/src/components/PasteArea.js +++ b/frontend/src/components/PasteArea.js @@ -9,6 +9,7 @@ class PasteArea extends React.Component { title: '', content: '', pass: '', + expiry: '' }; this.handleChange = this.handleChange.bind(this); @@ -35,6 +36,8 @@ class PasteArea extends React.Component { handleSubmit(event) { console.log(`title: ${this.state.title}`) console.log(`content: ${this.state.content}`) + console.log(`pass: ${this.state.pass}`) + console.log(`expiry: ${this.state.expiry}`) event.preventDefault(); } @@ -51,10 +54,10 @@ class PasteArea extends React.Component { content={this.state.content} maxLength="100000" id="pasteInput" /> - <br /> <input className="lt-button lt-shadow lt-hover" type="submit" value="new paste" /> <OptionsContainer pass={this.state.pass} + expiry={this.state.expiry} onChange={this.handleChange} /> </form> ); |