From f044c978feecc7e6d609443896a2e78844c606a6 Mon Sep 17 00:00:00 2001 From: chandel-aman Date: Sat, 9 Dec 2023 14:43:09 +0530 Subject: [PATCH] removed the use of any --- src/screens/OrganizationPeople/OrganizationPeople.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/screens/OrganizationPeople/OrganizationPeople.tsx b/src/screens/OrganizationPeople/OrganizationPeople.tsx index a98885a7f1..8a15d4cb55 100644 --- a/src/screens/OrganizationPeople/OrganizationPeople.tsx +++ b/src/screens/OrganizationPeople/OrganizationPeople.tsx @@ -22,6 +22,10 @@ import styles from './OrganizationPeople.module.css'; import { toast } from 'react-toastify'; +interface InterfaceLocationState { + role: number; +} + function organizationPeople(): JSX.Element { const { t } = useTranslation('translation', { keyPrefix: 'organizationPeople', @@ -29,8 +33,8 @@ function organizationPeople(): JSX.Element { document.title = t('title'); - const location = useLocation(); - const role = location?.state as any; + const location = useLocation(); + const role = location?.state; const currentUrl = window.location.href.split('=')[1];