From 8cddd6ce4ff80d92937f7b132a9a843461df97ed Mon Sep 17 00:00:00 2001 From: Anil_Kumar_Majji <106086523+Anil-kumar-Majji@users.noreply.github.com> Date: Wed, 15 Jan 2025 11:35:47 +0530 Subject: [PATCH] MOSIP-36036: Sonar bugs, security hotspots, duplications for UI code. (#1091) * MOSIP-37610: UI Enhancements Applicable for all Partners and Partner Admin screens Signed-off-by: Anil_Kumar_Majji <106086523+Anil-kumar-Majji@users.noreply.github.com> * MOSIP-37610: UI Enhancements Applicable for all Partners and Partner Admin screens Signed-off-by: Anil_Kumar_Majji <106086523+Anil-kumar-Majji@users.noreply.github.com> * MOSIP-36036: Sonar bugs, security hotspots, duplications for UI code Signed-off-by: Anil_Kumar_Majji <106086523+Anil-kumar-Majji@users.noreply.github.com> --------- Signed-off-by: Anil_Kumar_Majji <106086523+Anil-kumar-Majji@users.noreply.github.com> --- .../admin/authenticationServices/AdminApiKeysListFilter.js | 3 +-- .../admin/authenticationServices/AdminOidcClientsFilter.js | 3 +-- .../admin/deviceProviderServices/AdminDeviceDetailsFilter.js | 3 +-- .../pages/admin/ftmProviderServices/AdminFtmListFilter.js | 3 +-- pmp-revamp-ui/src/pages/admin/partners/PartnersListFilter.js | 3 +-- .../src/pages/admin/policyManager/PoliciesListFilter.js | 3 +-- .../src/pages/admin/policyManager/PolicyGroupListFilter.js | 3 +-- .../pages/admin/policyRequests/PolicyRequestsListFilter.js | 3 +-- pmp-revamp-ui/src/pages/common/ApproveRejectPopup.js | 1 - pmp-revamp-ui/src/pages/common/Title.js | 2 +- pmp-revamp-ui/src/pages/common/fields/DropdownComponent.js | 4 ++-- pmp-revamp-ui/src/pages/dashboard/ConsentPopup.js | 5 ++--- pmp-revamp-ui/src/pages/dashboard/Dashboard.js | 3 +-- .../partner/authenticationServices/ViewOidcClientDetails.js | 3 +-- .../pages/partner/certificates/PartnerCertificatesList.js | 3 +-- .../src/pages/partner/certificates/UploadCertificate.js | 4 +--- .../src/pages/partner/deviceProviderServices/SbiList.js | 2 +- .../src/pages/partner/ftmProviderServices/FtmList.js | 2 +- pmp-revamp-ui/src/pages/partner/policies/RequestPolicy.js | 3 +-- .../src/pages/partner/policies/ViewPolicyDetails.js | 3 +-- 20 files changed, 21 insertions(+), 38 deletions(-) diff --git a/pmp-revamp-ui/src/pages/admin/authenticationServices/AdminApiKeysListFilter.js b/pmp-revamp-ui/src/pages/admin/authenticationServices/AdminApiKeysListFilter.js index e7236475c..ee19586cf 100644 --- a/pmp-revamp-ui/src/pages/admin/authenticationServices/AdminApiKeysListFilter.js +++ b/pmp-revamp-ui/src/pages/admin/authenticationServices/AdminApiKeysListFilter.js @@ -2,8 +2,7 @@ import { useState, useEffect } from "react"; import DropdownComponent from "../../common/fields/DropdownComponent.js"; import TextInputComponent from "../../common/fields/TextInputComponent.js"; import { useTranslation } from "react-i18next"; -import { createDropdownData } from "../../../utils/AppUtils.js"; -import { isLangRTL } from '../../../utils/AppUtils'; +import { createDropdownData, isLangRTL } from "../../../utils/AppUtils.js"; import { getUserProfile } from '../../../services/UserProfileService'; function AdminApiKeysListFilter({ onApplyFilter }) { diff --git a/pmp-revamp-ui/src/pages/admin/authenticationServices/AdminOidcClientsFilter.js b/pmp-revamp-ui/src/pages/admin/authenticationServices/AdminOidcClientsFilter.js index ae57a60bd..2253e229f 100644 --- a/pmp-revamp-ui/src/pages/admin/authenticationServices/AdminOidcClientsFilter.js +++ b/pmp-revamp-ui/src/pages/admin/authenticationServices/AdminOidcClientsFilter.js @@ -2,8 +2,7 @@ import { useState, useEffect } from "react"; import DropdownComponent from "../../common/fields/DropdownComponent.js"; import TextInputComponent from "../../common/fields/TextInputComponent.js"; import { useTranslation } from "react-i18next"; -import { createDropdownData } from "../../../utils/AppUtils.js"; -import { isLangRTL } from '../../../utils/AppUtils'; +import { createDropdownData, isLangRTL } from "../../../utils/AppUtils.js"; import { getUserProfile } from '../../../services/UserProfileService'; function AdminOidcClientsFilter ({ onApplyFilter }) { diff --git a/pmp-revamp-ui/src/pages/admin/deviceProviderServices/AdminDeviceDetailsFilter.js b/pmp-revamp-ui/src/pages/admin/deviceProviderServices/AdminDeviceDetailsFilter.js index d9b43f166..afab8679b 100644 --- a/pmp-revamp-ui/src/pages/admin/deviceProviderServices/AdminDeviceDetailsFilter.js +++ b/pmp-revamp-ui/src/pages/admin/deviceProviderServices/AdminDeviceDetailsFilter.js @@ -2,8 +2,7 @@ import { useState, useEffect } from "react"; import DropdownComponent from "../../common/fields/DropdownComponent.js"; import TextInputComponent from "../../common/fields/TextInputComponent.js"; import { useTranslation } from "react-i18next"; -import { createDropdownData, fetchDeviceTypeDropdownData, fetchDeviceSubTypeDropdownData } from "../../../utils/AppUtils.js"; -import { isLangRTL } from '../../../utils/AppUtils.js'; +import { isLangRTL, createDropdownData, fetchDeviceTypeDropdownData, fetchDeviceSubTypeDropdownData } from "../../../utils/AppUtils.js"; import { getUserProfile } from '../../../services/UserProfileService.js'; function AdminDeviceDetailsFilter({ onApplyFilter, setErrorCode, setErrorMsg, removeSbiFields}) { diff --git a/pmp-revamp-ui/src/pages/admin/ftmProviderServices/AdminFtmListFilter.js b/pmp-revamp-ui/src/pages/admin/ftmProviderServices/AdminFtmListFilter.js index a8678c75b..ae395cd6a 100644 --- a/pmp-revamp-ui/src/pages/admin/ftmProviderServices/AdminFtmListFilter.js +++ b/pmp-revamp-ui/src/pages/admin/ftmProviderServices/AdminFtmListFilter.js @@ -2,8 +2,7 @@ import { useState, useEffect } from "react"; import DropdownComponent from "../../common/fields/DropdownComponent.js"; import TextInputComponent from "../../common/fields/TextInputComponent.js"; import { useTranslation } from "react-i18next"; -import { createDropdownData } from "../../../utils/AppUtils.js"; -import { isLangRTL } from '../../../utils/AppUtils'; +import { createDropdownData, isLangRTL } from "../../../utils/AppUtils.js"; import { getUserProfile } from '../../../services/UserProfileService'; function AdminFtmListFilter ({ onApplyFilter }) { diff --git a/pmp-revamp-ui/src/pages/admin/partners/PartnersListFilter.js b/pmp-revamp-ui/src/pages/admin/partners/PartnersListFilter.js index 37f697100..d9f86629a 100644 --- a/pmp-revamp-ui/src/pages/admin/partners/PartnersListFilter.js +++ b/pmp-revamp-ui/src/pages/admin/partners/PartnersListFilter.js @@ -2,8 +2,7 @@ import { useState, useEffect } from "react"; import DropdownComponent from "../../common/fields/DropdownComponent.js"; import TextInputComponent from "../../common/fields/TextInputComponent.js"; import { useTranslation } from "react-i18next"; -import { createDropdownData, createRequest, getPartnerManagerUrl, handleServiceErrors } from "../../../utils/AppUtils.js"; -import { isLangRTL } from '../../../utils/AppUtils'; +import { isLangRTL, createDropdownData, createRequest, getPartnerManagerUrl, handleServiceErrors } from "../../../utils/AppUtils.js"; import { getUserProfile } from '../../../services/UserProfileService'; import { HttpService } from "../../../services/HttpService.js"; diff --git a/pmp-revamp-ui/src/pages/admin/policyManager/PoliciesListFilter.js b/pmp-revamp-ui/src/pages/admin/policyManager/PoliciesListFilter.js index ab1c62ca3..ecd179079 100644 --- a/pmp-revamp-ui/src/pages/admin/policyManager/PoliciesListFilter.js +++ b/pmp-revamp-ui/src/pages/admin/policyManager/PoliciesListFilter.js @@ -2,8 +2,7 @@ import { useState, useEffect } from "react"; import DropdownComponent from "../../common/fields/DropdownComponent.js"; import TextInputComponent from "../../common/fields/TextInputComponent.js"; import { useTranslation } from "react-i18next"; -import { createDropdownData } from "../../../utils/AppUtils.js"; -import { isLangRTL } from '../../../utils/AppUtils'; +import { isLangRTL, createDropdownData } from "../../../utils/AppUtils.js"; import { getUserProfile } from '../../../services/UserProfileService'; function PoliciesListFilter({ onApplyFilter }) { diff --git a/pmp-revamp-ui/src/pages/admin/policyManager/PolicyGroupListFilter.js b/pmp-revamp-ui/src/pages/admin/policyManager/PolicyGroupListFilter.js index 9582d664d..1c23b6c28 100644 --- a/pmp-revamp-ui/src/pages/admin/policyManager/PolicyGroupListFilter.js +++ b/pmp-revamp-ui/src/pages/admin/policyManager/PolicyGroupListFilter.js @@ -2,8 +2,7 @@ import { useState, useEffect } from "react"; import DropdownComponent from "../../common/fields/DropdownComponent.js"; import TextInputComponent from "../../common/fields/TextInputComponent.js"; import { useTranslation } from "react-i18next"; -import { createDropdownData } from "../../../utils/AppUtils.js"; -import { isLangRTL } from '../../../utils/AppUtils'; +import { isLangRTL, createDropdownData } from "../../../utils/AppUtils.js"; import { getUserProfile } from '../../../services/UserProfileService'; function PolicyGroupListFilter({ onApplyFilter }) { diff --git a/pmp-revamp-ui/src/pages/admin/policyRequests/PolicyRequestsListFilter.js b/pmp-revamp-ui/src/pages/admin/policyRequests/PolicyRequestsListFilter.js index c47dd00a3..25038ef24 100644 --- a/pmp-revamp-ui/src/pages/admin/policyRequests/PolicyRequestsListFilter.js +++ b/pmp-revamp-ui/src/pages/admin/policyRequests/PolicyRequestsListFilter.js @@ -2,8 +2,7 @@ import { useState, useEffect } from "react"; import DropdownComponent from "../../common/fields/DropdownComponent.js"; import TextInputComponent from "../../common/fields/TextInputComponent.js"; import { useTranslation } from "react-i18next"; -import { createDropdownData, createRequest, getPartnerManagerUrl, handleServiceErrors } from "../../../utils/AppUtils.js"; -import { isLangRTL } from '../../../utils/AppUtils'; +import { isLangRTL, createDropdownData, createRequest, getPartnerManagerUrl, handleServiceErrors } from "../../../utils/AppUtils.js"; import { getUserProfile } from '../../../services/UserProfileService'; import { HttpService } from "../../../services/HttpService.js"; diff --git a/pmp-revamp-ui/src/pages/common/ApproveRejectPopup.js b/pmp-revamp-ui/src/pages/common/ApproveRejectPopup.js index 9c146470d..c1f671ccc 100644 --- a/pmp-revamp-ui/src/pages/common/ApproveRejectPopup.js +++ b/pmp-revamp-ui/src/pages/common/ApproveRejectPopup.js @@ -6,7 +6,6 @@ import LoadingIcon from './LoadingIcon'; import ErrorMessage from './ErrorMessage'; import close_icon from '../../svg/close_icon.svg'; import FocusTrap from 'focus-trap-react'; -import { onPressEnterKey } from '../../utils/AppUtils.js'; function ApproveRejectPopup({ popupData, closePopUp, approveRejectResponse, title, subtitle, header, description }) { const { t } = useTranslation(); diff --git a/pmp-revamp-ui/src/pages/common/Title.js b/pmp-revamp-ui/src/pages/common/Title.js index a52d6de48..ea6123987 100644 --- a/pmp-revamp-ui/src/pages/common/Title.js +++ b/pmp-revamp-ui/src/pages/common/Title.js @@ -1,7 +1,7 @@ import { useTranslation } from 'react-i18next'; import { useNavigate } from 'react-router-dom'; import { getUserProfile } from '../../services/UserProfileService'; -import { isLangRTL, moveToHome, onPressEnterKey, getStatusCode, bgOfStatus } from '../../utils/AppUtils'; +import { isLangRTL, moveToHome, getStatusCode, bgOfStatus } from '../../utils/AppUtils'; import backArrow from '../../svg/back_arrow.svg'; function Title({ title, subTitle, subTitle2, backLink, backLink2, status, version }) { diff --git a/pmp-revamp-ui/src/pages/common/fields/DropdownComponent.js b/pmp-revamp-ui/src/pages/common/fields/DropdownComponent.js index 46170addf..118a64ce5 100644 --- a/pmp-revamp-ui/src/pages/common/fields/DropdownComponent.js +++ b/pmp-revamp-ui/src/pages/common/fields/DropdownComponent.js @@ -1,8 +1,8 @@ import { useState, useEffect, useRef } from 'react'; import { useTranslation } from 'react-i18next'; -import { handleMouseClickForDropdown } from '../../../utils/AppUtils'; -import { isLangRTL } from '../../../utils/AppUtils'; +import { isLangRTL, handleMouseClickForDropdown } from '../../../utils/AppUtils'; +import { } from '../../../utils/AppUtils'; import { getUserProfile } from '../../../services/UserProfileService'; import Information from './Information'; diff --git a/pmp-revamp-ui/src/pages/dashboard/ConsentPopup.js b/pmp-revamp-ui/src/pages/dashboard/ConsentPopup.js index efe27fb3b..af4908662 100644 --- a/pmp-revamp-ui/src/pages/dashboard/ConsentPopup.js +++ b/pmp-revamp-ui/src/pages/dashboard/ConsentPopup.js @@ -1,10 +1,9 @@ -import { useState, useRef } from 'react'; +import { useState } from 'react'; import { HttpService } from "../../services/HttpService.js"; -import { logout, onPressEnterKey } from '../../utils/AppUtils.js'; +import { logout, onPressEnterKey, getPartnerManagerUrl, handleServiceErrors } from '../../utils/AppUtils.js'; import { useTranslation } from 'react-i18next'; import ErrorMessage from "../common/ErrorMessage.js"; import LoadingIcon from '../common/LoadingIcon.js'; -import { getPartnerManagerUrl, handleServiceErrors } from '../../utils/AppUtils.js'; import FocusTrap from 'focus-trap-react'; function ConsentPopup() { diff --git a/pmp-revamp-ui/src/pages/dashboard/Dashboard.js b/pmp-revamp-ui/src/pages/dashboard/Dashboard.js index 6b7933ef1..8e7afc2e1 100644 --- a/pmp-revamp-ui/src/pages/dashboard/Dashboard.js +++ b/pmp-revamp-ui/src/pages/dashboard/Dashboard.js @@ -1,9 +1,8 @@ import { useNavigate } from 'react-router-dom'; import { useState, useEffect } from 'react'; import { getUserProfile } from '../../services/UserProfileService.js'; -import { isLangRTL, onPressEnterKey } from '../../utils/AppUtils.js'; import { useTranslation } from "react-i18next"; -import { getPartnerManagerUrl, createRequest, handleServiceErrors, moveToOidcClientsList } from '../../utils/AppUtils.js'; +import { isLangRTL, onPressEnterKey, getPartnerManagerUrl, createRequest, handleServiceErrors, moveToOidcClientsList } from '../../utils/AppUtils.js'; import { HttpService } from '../../services/HttpService.js'; import ErrorMessage from '../common/ErrorMessage.js'; import LoadingIcon from "../common/LoadingIcon.js"; diff --git a/pmp-revamp-ui/src/pages/partner/authenticationServices/ViewOidcClientDetails.js b/pmp-revamp-ui/src/pages/partner/authenticationServices/ViewOidcClientDetails.js index 13a7c8fd0..3a9989157 100644 --- a/pmp-revamp-ui/src/pages/partner/authenticationServices/ViewOidcClientDetails.js +++ b/pmp-revamp-ui/src/pages/partner/authenticationServices/ViewOidcClientDetails.js @@ -3,8 +3,7 @@ import { useState, useEffect, useRef } from "react"; import { useNavigate } from "react-router-dom"; import { useTranslation } from "react-i18next"; import { getUserProfile } from "../../../services/UserProfileService"; -import { isLangRTL, handleMouseClickForDropdown, getGrantTypes, bgOfStatus, onPressEnterKey, copyClientId } from "../../../utils/AppUtils"; -import { formatDate, moveToOidcClientsList, getStatusCode } from "../../../utils/AppUtils"; +import { isLangRTL, formatDate, moveToOidcClientsList, getStatusCode, handleMouseClickForDropdown, getGrantTypes, bgOfStatus, copyClientId } from "../../../utils/AppUtils"; import content_copy_icon from "../../../svg/content_copy_icon.svg"; import disabled_copy_icon from "../../../svg/disabled_copy_icon.svg"; import Title from "../../common/Title"; diff --git a/pmp-revamp-ui/src/pages/partner/certificates/PartnerCertificatesList.js b/pmp-revamp-ui/src/pages/partner/certificates/PartnerCertificatesList.js index 8e2327c20..177811de6 100644 --- a/pmp-revamp-ui/src/pages/partner/certificates/PartnerCertificatesList.js +++ b/pmp-revamp-ui/src/pages/partner/certificates/PartnerCertificatesList.js @@ -2,11 +2,10 @@ import { useEffect, useState, useRef } from "react"; import UploadCertificate from "./UploadCertificate"; import { HttpService } from "../../../services/HttpService"; import { getUserProfile } from "../../../services/UserProfileService"; -import { downloadFile, getCertificate, handleServiceErrors, isLangRTL } from "../../../utils/AppUtils"; import ErrorMessage from "../../common/ErrorMessage"; import SuccessMessage from "../../common/SuccessMessage"; import LoadingIcon from "../../common/LoadingIcon"; -import { formatDate, getPartnerTypeDescription, handleMouseClickForDropdown, getPartnerManagerUrl, getPartnerDomainType } from "../../../utils/AppUtils"; +import { downloadFile, getCertificate, handleServiceErrors, isLangRTL, formatDate, getPartnerTypeDescription, handleMouseClickForDropdown, getPartnerManagerUrl, getPartnerDomainType } from "../../../utils/AppUtils"; import { useTranslation } from "react-i18next"; import rectangleBox from '../../../svg/rectangle_box.svg'; diff --git a/pmp-revamp-ui/src/pages/partner/certificates/UploadCertificate.js b/pmp-revamp-ui/src/pages/partner/certificates/UploadCertificate.js index b3a9d973d..a80333dd9 100644 --- a/pmp-revamp-ui/src/pages/partner/certificates/UploadCertificate.js +++ b/pmp-revamp-ui/src/pages/partner/certificates/UploadCertificate.js @@ -1,8 +1,7 @@ import { useState, useEffect, useCallback } from 'react'; import { HttpService } from "../../../services/HttpService"; -import { formatDate, getPartnerTypeDescription, getPartnerManagerUrl, getPartnerDomainType, createRequest, onPressEnterKey } from '../../../utils/AppUtils'; +import { isLangRTL, formatDate, getPartnerTypeDescription, getPartnerManagerUrl, getPartnerDomainType, createRequest, onPressEnterKey } from '../../../utils/AppUtils'; import { useTranslation } from 'react-i18next'; -import { isLangRTL } from '../../../utils/AppUtils'; import { getUserProfile } from '../../../services/UserProfileService'; import ErrorMessage from "../../common/ErrorMessage"; import LoadingIcon from "../../common/LoadingIcon"; @@ -10,7 +9,6 @@ import SuccessMessage from '../../common/SuccessMessage'; import fileUploadImg from './../../../svg/file_upload_certificate.svg'; import fileDescription from '../../../svg/file_description.svg'; import FocusTrap from 'focus-trap-react'; -import * as asn1js from "asn1js"; import { Certificate } from "pkijs"; import { fromBER } from "asn1js"; diff --git a/pmp-revamp-ui/src/pages/partner/deviceProviderServices/SbiList.js b/pmp-revamp-ui/src/pages/partner/deviceProviderServices/SbiList.js index cbc13104a..199daec61 100644 --- a/pmp-revamp-ui/src/pages/partner/deviceProviderServices/SbiList.js +++ b/pmp-revamp-ui/src/pages/partner/deviceProviderServices/SbiList.js @@ -5,7 +5,7 @@ import { getUserProfile } from '../../../services/UserProfileService.js'; import Title from '../../common/Title.js'; import { HttpService } from '../../../services/HttpService'; import { - isLangRTL, onPressEnterKey, bgOfStatus, getStatusCode, getPartnerTypeDescription, handleServiceErrors, formatDate, getPartnerManagerUrl, + isLangRTL, bgOfStatus, getStatusCode, getPartnerTypeDescription, handleServiceErrors, formatDate, getPartnerManagerUrl, handleMouseClickForDropdown, populateDeactivatedStatus, createRequest } from '../../../utils/AppUtils.js'; diff --git a/pmp-revamp-ui/src/pages/partner/ftmProviderServices/FtmList.js b/pmp-revamp-ui/src/pages/partner/ftmProviderServices/FtmList.js index 9ccbcd425..5a47a5307 100644 --- a/pmp-revamp-ui/src/pages/partner/ftmProviderServices/FtmList.js +++ b/pmp-revamp-ui/src/pages/partner/ftmProviderServices/FtmList.js @@ -6,7 +6,7 @@ import { HttpService } from '../../../services/HttpService'; import { isLangRTL, handleServiceErrors, getPartnerManagerUrl, formatDate, getStatusCode, handleMouseClickForDropdown, toggleSortDescOrder, toggleSortAscOrder, bgOfStatus, - onPressEnterKey, createRequest, populateDeactivatedStatus + createRequest, populateDeactivatedStatus } from '../../../utils/AppUtils'; import ErrorMessage from '../../common/ErrorMessage'; import Title from '../../common/Title'; diff --git a/pmp-revamp-ui/src/pages/partner/policies/RequestPolicy.js b/pmp-revamp-ui/src/pages/partner/policies/RequestPolicy.js index 850736ca8..9f6d85428 100644 --- a/pmp-revamp-ui/src/pages/partner/policies/RequestPolicy.js +++ b/pmp-revamp-ui/src/pages/partner/policies/RequestPolicy.js @@ -2,8 +2,7 @@ import { useState, useEffect, useRef } from "react"; import { useNavigate, useBlocker } from "react-router-dom"; import { useTranslation } from "react-i18next"; import { getUserProfile } from "../../../services/UserProfileService"; -import { isLangRTL } from "../../../utils/AppUtils"; -import { getPartnerManagerUrl, getPolicyManagerUrl, handleServiceErrors, moveToPolicies, getPartnerTypeDescription, createDropdownData, createRequest } from '../../../utils/AppUtils'; +import { isLangRTL, getPartnerManagerUrl, getPolicyManagerUrl, handleServiceErrors, moveToPolicies, getPartnerTypeDescription, createDropdownData, createRequest } from '../../../utils/AppUtils'; import { HttpService } from '../../../services/HttpService'; import LoadingIcon from "../../common/LoadingIcon"; import ErrorMessage from "../../common/ErrorMessage"; diff --git a/pmp-revamp-ui/src/pages/partner/policies/ViewPolicyDetails.js b/pmp-revamp-ui/src/pages/partner/policies/ViewPolicyDetails.js index a14b40ff6..afb90d177 100644 --- a/pmp-revamp-ui/src/pages/partner/policies/ViewPolicyDetails.js +++ b/pmp-revamp-ui/src/pages/partner/policies/ViewPolicyDetails.js @@ -3,8 +3,7 @@ import { useState, useEffect } from "react"; import { useNavigate } from "react-router-dom"; import { useTranslation } from "react-i18next"; import { getUserProfile } from "../../../services/UserProfileService"; -import { isLangRTL } from "../../../utils/AppUtils"; -import { formatDate, moveToPolicies, getStatusCode, getPartnerTypeDescription, bgOfStatus } from "../../../utils/AppUtils"; +import { isLangRTL, formatDate, moveToPolicies, getStatusCode, getPartnerTypeDescription, bgOfStatus } from "../../../utils/AppUtils"; import adminImage from "../../../svg/admin.png"; import partnerImage from "../../../svg/partner.png"; import Title from "../../common/Title";