From c4bb7c9b17816accd346b7f15ae6db7bf4499d98 Mon Sep 17 00:00:00 2001 From: Divlo Date: Mon, 29 Aug 2022 20:04:24 +0200 Subject: [PATCH] fix: remove the error/success icons in `` --- components/Header/Header.test.tsx | 10 ------ components/design/FormState/FormState.tsx | 40 +++++++++-------------- locales/en/application.json | 2 +- public/images/svg/icons/input/error.svg | 7 ---- public/images/svg/icons/input/success.svg | 4 --- 5 files changed, 16 insertions(+), 47 deletions(-) delete mode 100644 components/Header/Header.test.tsx delete mode 100644 public/images/svg/icons/input/error.svg delete mode 100644 public/images/svg/icons/input/success.svg diff --git a/components/Header/Header.test.tsx b/components/Header/Header.test.tsx deleted file mode 100644 index 23964a3..0000000 --- a/components/Header/Header.test.tsx +++ /dev/null @@ -1,10 +0,0 @@ -import { render } from '@testing-library/react' - -import { Header } from '.' - -describe('
', () => { - it('should render', () => { - const { getByText } = render(
) - expect(getByText('Thream')).toBeInTheDocument() - }) -}) diff --git a/components/design/FormState/FormState.tsx b/components/design/FormState/FormState.tsx index a728387..f83c293 100644 --- a/components/design/FormState/FormState.tsx +++ b/components/design/FormState/FormState.tsx @@ -27,31 +27,21 @@ export const FormState: React.FC = (props) => { } return ( - <> -
-
- - {t(`errors:${state}`)}: {message} - -
- - - + )} + > +
+ + {t(`errors:${state}`)}: {message} + +
) } diff --git a/locales/en/application.json b/locales/en/application.json index 43acfe4..6c8fa95 100644 --- a/locales/en/application.json +++ b/locales/en/application.json @@ -21,7 +21,7 @@ "label-checkbox-guilds": "Show the list of guilds to everyone.", "nothing-here": "Nothing's here...", "save": "Save", - "saved-information": "The information has been saved.", + "saved-information": "The information have been saved.", "success-email-changed": "Please check your emails to confirm your new email address. You are now signed out.", "delete": "Delete", "signout": "Sign out", diff --git a/public/images/svg/icons/input/error.svg b/public/images/svg/icons/input/error.svg deleted file mode 100644 index f31af3d..0000000 --- a/public/images/svg/icons/input/error.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/public/images/svg/icons/input/success.svg b/public/images/svg/icons/input/success.svg deleted file mode 100644 index bbccc6b..0000000 --- a/public/images/svg/icons/input/success.svg +++ /dev/null @@ -1,4 +0,0 @@ -