From 4545db101abfdcac91cc7cabf7bde180b54e9be9 Mon Sep 17 00:00:00 2001 From: jackyzha0 Date: Sun, 10 May 2020 15:43:35 -0700 Subject: add password stuff + expiry stuff --- frontend/src/components/PasteArea.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'frontend/src/components/PasteArea.js') 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" /> -
); -- cgit v1.2.3