From ae08c669ec6051d38cdc13084eae9d611020ef6d Mon Sep 17 00:00:00 2001 From: Dave Smith-Hayes Date: Mon, 18 Mar 2024 22:07:30 -0400 Subject: [PATCH] Move form components into the form directory, and add a flash message. --- app/src/frontend/components/flash-message.tsx | 7 +++++++ app/src/frontend/components/{ => form}/error-message.tsx | 0 app/src/frontend/components/{ => form}/login-form.tsx | 0 app/src/frontend/components/{ => form}/register-form.tsx | 0 4 files changed, 7 insertions(+) create mode 100644 app/src/frontend/components/flash-message.tsx rename app/src/frontend/components/{ => form}/error-message.tsx (100%) rename app/src/frontend/components/{ => form}/login-form.tsx (100%) rename app/src/frontend/components/{ => form}/register-form.tsx (100%) diff --git a/app/src/frontend/components/flash-message.tsx b/app/src/frontend/components/flash-message.tsx new file mode 100644 index 0000000..3e7fad5 --- /dev/null +++ b/app/src/frontend/components/flash-message.tsx @@ -0,0 +1,7 @@ +const FlashMessage = (props: { message: string, severity?: string }) => { + return ( +
+ {props.message} +
+ ) +}; diff --git a/app/src/frontend/components/error-message.tsx b/app/src/frontend/components/form/error-message.tsx similarity index 100% rename from app/src/frontend/components/error-message.tsx rename to app/src/frontend/components/form/error-message.tsx diff --git a/app/src/frontend/components/login-form.tsx b/app/src/frontend/components/form/login-form.tsx similarity index 100% rename from app/src/frontend/components/login-form.tsx rename to app/src/frontend/components/form/login-form.tsx diff --git a/app/src/frontend/components/register-form.tsx b/app/src/frontend/components/form/register-form.tsx similarity index 100% rename from app/src/frontend/components/register-form.tsx rename to app/src/frontend/components/form/register-form.tsx