Skip to content

Commit

Permalink
Merge pull request #314 from AkshataKatwal16/relese-changes
Browse files Browse the repository at this point in the history
Issue feat:Add protected route to center page
  • Loading branch information
itsvick authored Nov 12, 2024
2 parents 4e4e6b8 + 13b0bac commit d4565d6
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 d4565d6

Please sign in to comment.