diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-07-08 20:51:27 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-07-08 20:51:27 +0200 |
| commit | f7cf600fe1abc92ddccdbadf30315d6f9785994f (patch) | |
| tree | fe9b8e32e3b54b97bfca03dc83d0dabb72972796 /animism-align/frontend/common | |
| parent | 5cab93aa847d347e4ae7700ecdad322506072888 (diff) | |
adding videos to the database
Diffstat (limited to 'animism-align/frontend/common')
| -rw-r--r-- | animism-align/frontend/common/form.component.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/animism-align/frontend/common/form.component.js b/animism-align/frontend/common/form.component.js index f3775a2..2f9162e 100644 --- a/animism-align/frontend/common/form.component.js +++ b/animism-align/frontend/common/form.component.js @@ -8,8 +8,9 @@ export const TextInput = props => ( type="text" required={props.required} onChange={props.onChange} + onBlur={props.onBlur} name={props.name} - value={props.data[props.name]} + value={props.data[props.name] || ""} placeholder={props.placeholder} autoComplete={props.autoComplete} /> @@ -17,7 +18,7 @@ export const TextInput = props => ( ) export const LabelDescription = props => ( - <label className={'text description'}> + <label className={props.className ? 'text description ' + props.className : 'text description'}> <span>{props.title}</span> <span>{props.children}</span> </label> @@ -160,7 +161,7 @@ export class FileInputField extends Component { <span>{title}</span> <div className="row"> <button> - {label || "Choose files"} + {label || (multiple ? "Choose files" : "Choose file")} <FileInput mime={mime} multiple={multiple} |
