From 16aafb4d3156030d332270cf55adb058853b4ffa Mon Sep 17 00:00:00 2001 From: Nischal Paliwal <156404171+NischalPaliwal@users.noreply.github.com> Date: Mon, 27 Jan 2025 10:52:05 +0000 Subject: [PATCH 1/2] added styles from OrgUpdate.module.css to app.module.css --- .../General/OrgUpdate/OrgUpdate.module.css | 13 ------------- .../OrgSettings/General/OrgUpdate/OrgUpdate.tsx | 2 +- src/style/app.module.css | 15 +++++++++++++++ 3 files changed, 16 insertions(+), 14 deletions(-) delete mode 100644 src/components/OrgSettings/General/OrgUpdate/OrgUpdate.module.css diff --git a/src/components/OrgSettings/General/OrgUpdate/OrgUpdate.module.css b/src/components/OrgSettings/General/OrgUpdate/OrgUpdate.module.css deleted file mode 100644 index fca7ac5e5b..0000000000 --- a/src/components/OrgSettings/General/OrgUpdate/OrgUpdate.module.css +++ /dev/null @@ -1,13 +0,0 @@ -.message { - height: 420px; - display: flex; - justify-content: center; - align-items: center; - flex-direction: column; -} - -.icon { - transform: scale(1.5); - color: var(--bs-danger); - margin-bottom: 1rem; -} diff --git a/src/components/OrgSettings/General/OrgUpdate/OrgUpdate.tsx b/src/components/OrgSettings/General/OrgUpdate/OrgUpdate.tsx index 6e0be28a56..483f2c99da 100644 --- a/src/components/OrgSettings/General/OrgUpdate/OrgUpdate.tsx +++ b/src/components/OrgSettings/General/OrgUpdate/OrgUpdate.tsx @@ -12,7 +12,7 @@ import Loader from 'components/Loader/Loader'; import { Col, Form, Row } from 'react-bootstrap'; import convertToBase64 from 'utils/convertToBase64'; import { errorHandler } from 'utils/errorHandler'; -import styles from './OrgUpdate.module.css'; +import styles from '../../../../style/app.module.css'; import type { InterfaceQueryOrganizationsListObject, InterfaceAddress, diff --git a/src/style/app.module.css b/src/style/app.module.css index 5efd03ee96..cc1b9d936d 100644 --- a/src/style/app.module.css +++ b/src/style/app.module.css @@ -9101,3 +9101,18 @@ button[data-testid='createPostBtn'] { gap: 10px; align-items: center; } + +/* OrgUpdate.tsx */ +.message { + height: 420px; + display: flex; + justify-content: center; + align-items: center; + flex-direction: column; +} + +.icon { + transform: scale(1.5); + color: var(--bs-danger); + margin-bottom: 1rem; +} From 4667085c32e2632edd2cd20081ef8c47cab0f037 Mon Sep 17 00:00:00 2001 From: Nischal Paliwal <156404171+NischalPaliwal@users.noreply.github.com> Date: Mon, 27 Jan 2025 11:37:48 +0000 Subject: [PATCH 2/2] removed the code coverage disable statement --- src/components/OrgSettings/General/OrgUpdate/OrgUpdate.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/OrgSettings/General/OrgUpdate/OrgUpdate.tsx b/src/components/OrgSettings/General/OrgUpdate/OrgUpdate.tsx index 483f2c99da..f3d64ac542 100644 --- a/src/components/OrgSettings/General/OrgUpdate/OrgUpdate.tsx +++ b/src/components/OrgSettings/General/OrgUpdate/OrgUpdate.tsx @@ -141,7 +141,7 @@ function orgUpdate(props: InterfaceOrgUpdateProps): JSX.Element { file: formState.orgImage, }, }); - // istanbul ignore next + if (data) { refetch({ id: orgId }); toast.success(t('successfulUpdated') as string);