Skip to content

Commit

Permalink
added labels for input elements
Browse files Browse the repository at this point in the history
  • Loading branch information
LashaKakabadze committed Jan 12, 2021
1 parent dfe456c commit e12a3df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion template/src/common/Input/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ import * as S from './styles';
const Input = ({ id, name, placeholder, onChange }) => {
return (
<S.Container>
<label htmlFor={id}>{id}</label>
<label htmlFor={name}>{id}</label>
<S.Input
spellcheck="false"
placeholder={placeholder}
name={name}
id={name}
onChange={onChange}
/>
</S.Container>
Expand Down
3 changes: 2 additions & 1 deletion template/src/common/TextArea/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import * as S from './styles';

const TextArea = ({ name, id, placeholder, onChange }) => (
<S.Container>
<label htmlFor={id}>{id}</label>
<label htmlFor={name}>{id}</label>
<S.TextArea
spellcheck="false"
placeholder={placeholder}
id={name}
name={name}
onChange={onChange}
/>
Expand Down

0 comments on commit e12a3df

Please sign in to comment.