Skip to content

Commit

Permalink
removed the use of any
Browse files Browse the repository at this point in the history
  • Loading branch information
chandel-aman committed Dec 9, 2023
1 parent 449d6f8 commit f044c97
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/screens/OrganizationPeople/OrganizationPeople.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,19 @@ 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',
});

document.title = t('title');

const location = useLocation();
const role = location?.state as any;
const location = useLocation<InterfaceLocationState>();
const role = location?.state;

const currentUrl = window.location.href.split('=')[1];

Expand Down

0 comments on commit f044c97

Please sign in to comment.