summaryrefslogtreecommitdiff
path: root/frontend/src/components/modals/TextInputModal.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/components/modals/TextInputModal.js')
-rw-r--r--frontend/src/components/modals/TextInputModal.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/frontend/src/components/modals/TextInputModal.js b/frontend/src/components/modals/TextInputModal.js
index 8d03e81f..d5edb60b 100644
--- a/frontend/src/components/modals/TextInputModal.js
+++ b/frontend/src/components/modals/TextInputModal.js
@@ -36,18 +36,14 @@ class TextInputModal extends React.Component {
onCancel={this.onCancel.bind(this)}
>
<form
- onSubmit={e => {
+ onSubmit={(e) => {
e.preventDefault()
this.onSubmit()
}}
>
<div className="form-group">
<label className="form-control-label">{this.props.label}</label>
- <input
- type="text"
- className="form-control"
- ref={textInput => (this.textInput = textInput)}
- />
+ <input type="text" className="form-control" ref={(textInput) => (this.textInput = textInput)} />
</div>
</form>
</Modal>