From 8afac1ef8b73dda932da103b286dc2be6426887c Mon Sep 17 00:00:00 2001 From: vivek Date: Wed, 1 Nov 2023 17:54:48 +0530 Subject: [PATCH] renamed shiftingData to shiftData --- src/Components/Shifting/ListView.tsx | 6 +++--- src/Redux/api.tsx | 6 ------ 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/src/Components/Shifting/ListView.tsx b/src/Components/Shifting/ListView.tsx index aa0a296f71c..8bf2ecf3e66 100644 --- a/src/Components/Shifting/ListView.tsx +++ b/src/Components/Shifting/ListView.tsx @@ -53,7 +53,7 @@ export default function ListView() { }; const { - data: shiftingData, + data: shiftData, loading, refetch: fetchData, } = useQuery(routes.listShiftRequests, { @@ -301,10 +301,10 @@ export default function ListView() {
- {showShiftingCardList(shiftingData?.results || [])} + {showShiftingCardList(shiftData?.results || [])}
- +
)} diff --git a/src/Redux/api.tsx b/src/Redux/api.tsx index 7bdc6471708..5d1a32bb6a5 100644 --- a/src/Redux/api.tsx +++ b/src/Redux/api.tsx @@ -137,12 +137,6 @@ const routes = { TRes: Type>(), }, - getSpecificUser: { - path: "/api/v1/users/{id}", - method: "GET", - TRes: Type>(), - }, - userListSkill: { path: "/api/v1/users/{username}/skill/", },