summaryrefslogtreecommitdiff
path: root/animism-align/frontend/app/common/form.component.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2021-03-05 19:10:55 +0100
committerJules Laplace <julescarbon@gmail.com>2021-03-05 19:10:55 +0100
commit0907418ce2c6ca498b02e8e514e4945d79750467 (patch)
treecdccf1157d01f5ead91a454d70e1f1769d945320 /animism-align/frontend/app/common/form.component.js
parentd5b6a4ea27f8c905e613363aab365066ad6d9cda (diff)
adding login view
Diffstat (limited to 'animism-align/frontend/app/common/form.component.js')
-rw-r--r--animism-align/frontend/app/common/form.component.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/animism-align/frontend/app/common/form.component.js b/animism-align/frontend/app/common/form.component.js
index 4b6616e..37ef9e0 100644
--- a/animism-align/frontend/app/common/form.component.js
+++ b/animism-align/frontend/app/common/form.component.js
@@ -5,7 +5,7 @@ export const TextInput = props => (
<label className={(props.error ? 'error' : 'text') + (props.className ? ' ' + props.className : '')}>
{props.title && <span>{props.title}</span>}
<input
- type="text"
+ type={props.type || "text"}
required={props.required}
onChange={props.onChange}
onBlur={props.onBlur}
@@ -238,5 +238,6 @@ export const SubmitButton = (props) => (
className={props.className ? "submit " + props.className : "submit"}
onClick={props.onClick}
>{props.title}</button>
+ {props.after && <span>{props.after}</span>}
</label>
)