Skip to content

Commit

Permalink
Issue feat:Add protected route to center page
Browse files Browse the repository at this point in the history
  • Loading branch information
AkshataKatwal16 committed Nov 12, 2024
1 parent 02fad65 commit 13b0bac
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/pages/centers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ import ConfirmationModal from "@/components/ConfirmationModal";
import { Box, Button, Typography, useMediaQuery } from "@mui/material";
import Loader from "@/components/Loader";
import { getFormRead } from "@/services/CreateUserService";
import ProtectedRoute from "../components/ProtectedRoute";

import {
GenerateSchemaAndUiSchema,
customFields,
Expand Down Expand Up @@ -1174,6 +1176,8 @@ const response= await fetchCohortMemberList(data);

return (
<>
<ProtectedRoute>

<ConfirmationModal
message={
selectedRowData?.totalActiveMembers > 0
Expand Down Expand Up @@ -1309,6 +1313,8 @@ const response= await fetchCohortMemberList(data);
)}
</SimpleModal>
</HeaderComponent>
</ProtectedRoute>

</>
);
};
Expand Down

0 comments on commit 13b0bac

Please sign in to comment.