aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/components/PasteArea.js
diff options
context:
space:
mode:
authorjackyzha0 <[email protected]>2020-05-10 15:43:35 -0700
committerjackyzha0 <[email protected]>2020-05-10 15:43:35 -0700
commit4545db101abfdcac91cc7cabf7bde180b54e9be9 (patch)
tree9b437efad909ea324f039c555d52d150d92a4583 /frontend/src/components/PasteArea.js
parentMerge pull request #10 from jackyzha0/react (diff)
downloadctrl-v-4545db101abfdcac91cc7cabf7bde180b54e9be9.tar.xz
ctrl-v-4545db101abfdcac91cc7cabf7bde180b54e9be9.zip
add password stuff + expiry stuff
Diffstat (limited to 'frontend/src/components/PasteArea.js')
-rw-r--r--frontend/src/components/PasteArea.js5
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>
);