diff --git a/client/src/components/ui/Project/project.scss b/client/src/components/ui/Project/project.scss index f3ff9243287e53b831447b4ad62ddcb021ec908b..8814318c772be8eb18952979e01a604d45d691ba 100644 --- a/client/src/components/ui/Project/project.scss +++ b/client/src/components/ui/Project/project.scss @@ -1,4 +1,3 @@ - @use 'styles/settings'as s; .project { @@ -80,4 +79,3 @@ line-height: 1.8; } } - diff --git a/client/src/components/ui/TextInput/index.tsx b/client/src/components/ui/TextInput/index.tsx index ee44fa04d55320d65eabe114d4b01bad4177656b..1613bebc18a01ee49e358bc5e2e7ee76767ac3aa 100644 --- a/client/src/components/ui/TextInput/index.tsx +++ b/client/src/components/ui/TextInput/index.tsx @@ -10,20 +10,15 @@ interface Props { export default function TextInput({ label, name, type }: Props) { type = type ? type : 'text'; - let field = ( - <input type={type} required name={name} id={name} /> - ); - - if (type === 'textarea') { - field = ( - <textarea name={name} id={name} required></textarea> - ) - } return ( <div className={'input-field' + (type === 'textarea' ? ' textarea' : '')}> <label htmlFor={name}>{label}</label> - {field} + { + type === 'textarea' ? + (<textarea name={name} id={name} required></textarea>) + : (<input type={type} required name={name} id={name} />) + } </div> ); } diff --git a/client/src/pages/Home/home.scss b/client/src/pages/Home/home.scss index e085d9c9c866af811a19cd6edf76a608564616a4..a1681c5d3dee9a42c1a5c48aad26c1056387a8ae 100644 --- a/client/src/pages/Home/home.scss +++ b/client/src/pages/Home/home.scss @@ -469,4 +469,4 @@ footer { background: s.$accent; } } -} \ No newline at end of file +}