Skip to content

Commit

Permalink
renamed shiftingData to shiftData
Browse files Browse the repository at this point in the history
  • Loading branch information
konavivekramakrishna committed Nov 1, 2023
1 parent a3582c4 commit 8afac1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/Components/Shifting/ListView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default function ListView() {
};

const {
data: shiftingData,
data: shiftData,
loading,
refetch: fetchData,
} = useQuery(routes.listShiftRequests, {
Expand Down Expand Up @@ -301,10 +301,10 @@ export default function ListView() {
</div>

<div className="mb-5 grid gap-x-6 md:grid-cols-2">
{showShiftingCardList(shiftingData?.results || [])}
{showShiftingCardList(shiftData?.results || [])}
</div>
<div>
<Pagination totalCount={shiftingData?.count || 0} />
<Pagination totalCount={shiftData?.count || 0} />
</div>
</div>
)}
Expand Down
6 changes: 0 additions & 6 deletions src/Redux/api.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,6 @@ const routes = {
TRes: Type<PaginatedResponse<UserModel>>(),
},

getSpecificUser: {
path: "/api/v1/users/{id}",
method: "GET",
TRes: Type<PaginatedResponse<UserModel>>(),
},

userListSkill: {
path: "/api/v1/users/{username}/skill/",
},
Expand Down

0 comments on commit 8afac1e

Please sign in to comment.