diff --git a/src/components/ErrorMessage.css b/src/components/ErrorMessage.css index 3177e43..e69de29 100644 --- a/src/components/ErrorMessage.css +++ b/src/components/ErrorMessage.css @@ -1,8 +0,0 @@ -.errorMessage { - height: 5rem; -} - -p { - margin: 0; - padding: 0; -} diff --git a/src/components/ErrorMessage.jsx b/src/components/ErrorMessage.jsx index 10e7276..e0388d0 100644 --- a/src/components/ErrorMessage.jsx +++ b/src/components/ErrorMessage.jsx @@ -1,11 +1,7 @@ import './ErrorMessage.css'; const ErrorMessage = (props) => { - return ( -
- {props.errorMessage !== '' ?

{props.errorMessage}

: <>} -
- ); + return
{

{props.errorMessage}

}
; }; export default ErrorMessage; diff --git a/src/views/Home.css b/src/views/Home.css index e69de29..157069f 100644 --- a/src/views/Home.css +++ b/src/views/Home.css @@ -0,0 +1,3 @@ +.Home__form { + height: 8rem; +} diff --git a/src/views/Home.jsx b/src/views/Home.jsx index 14e87dd..ad228d9 100644 --- a/src/views/Home.jsx +++ b/src/views/Home.jsx @@ -12,13 +12,15 @@ export function Home({ data, setListPath, userId, userEmail }) {

Hello from the home (/) page!

- - +
+ + {message !== '' && } +