diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-06-02 16:09:59 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-06-02 16:09:59 +0200 |
| commit | 2db55c3d261ddee52019bbd06dc5f6545db39c16 (patch) | |
| tree | 4afe164982b81ca8cbd239e9f08567e8ae7fb2cf /frontend/common/form.component.js | |
| parent | 42d5e59335d97aa0cf165f2aedf8d04f60db9310 (diff) | |
form for making a new graph. add username field to db
Diffstat (limited to 'frontend/common/form.component.js')
| -rw-r--r-- | frontend/common/form.component.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/frontend/common/form.component.js b/frontend/common/form.component.js index fb8acbe..36369b5 100644 --- a/frontend/common/form.component.js +++ b/frontend/common/form.component.js @@ -10,10 +10,18 @@ export const TextInput = props => ( onChange={props.onChange} name={props.name} value={props.data[props.name]} + autoComplete={props.autoComplete} /> </label> ) +export const LabelDescription = props => ( + <label className={'text description'}> + <span>{props.title}</span> + <span>{props.children}</span> + </label> +) + export const NumberInput = props => ( <label className={props.error ? 'error' : 'text'}> <span>{props.title}</span> |
