diff --git a/src/components/NewEmployee/NewEmployee.module.scss b/src/components/NewEmployee/NewEmployee.module.scss index dc2459a..ba98670 100644 --- a/src/components/NewEmployee/NewEmployee.module.scss +++ b/src/components/NewEmployee/NewEmployee.module.scss @@ -10,6 +10,7 @@ .newEmployeeWrapper { display: flex; + gap: 16px; justify-content: space-between; } @@ -20,12 +21,20 @@ @include m.BodyLarge; } +.invalidInput { + border: 1px solid v.$error; +} + .newEmployeeAddButton { width: 246.5px; - // background-color: v.$accent-color; - // color: v.$white-color; } .newEmployeeButton { width: 246.5px; } + +.errorText { + color: v.$error; + @include m.Description; + margin-top: -10px; +} diff --git a/src/components/NewEmployee/NewEmployee.tsx b/src/components/NewEmployee/NewEmployee.tsx index 299a5b7..8deca94 100644 --- a/src/components/NewEmployee/NewEmployee.tsx +++ b/src/components/NewEmployee/NewEmployee.tsx @@ -1,8 +1,10 @@ +import { useState } from 'react'; import UniversalInput from 'ui-lib/Inputs/UniversalInput/UniversalInput'; import EmailInput from 'ui-lib/Inputs/EmailInput/EmailInput'; import PasswordInput from 'ui-lib/Inputs/PasswordInput/PasswordInput'; import { UniversalButton } from 'ui-lib/Buttons'; import styles from './NewEmployee.module.scss'; +import additionalStyles from '../../ui-lib/Inputs/UniversalInput/UniversalInput.module.scss'; const NewEmployee = () => { const name = ''; @@ -10,6 +12,8 @@ const NewEmployee = () => { const email = ''; const nickname = ''; const password = ''; + const errorText = ''; + const [isValid, setIslValid] = useState(false); return (