From 89df66239bde94e088e2de881a2eca4199fd9bff Mon Sep 17 00:00:00 2001 From: Alican Erdurmaz Date: Wed, 25 Sep 2024 11:04:35 +0300 Subject: [PATCH] feat(refine-hr): redundant prop --- .../src/components/time-offs/leave-cards.tsx | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/examples/refine-hr-minimal/src/components/time-offs/leave-cards.tsx b/examples/refine-hr-minimal/src/components/time-offs/leave-cards.tsx index f04e62ce6126..91fd331dc008 100644 --- a/examples/refine-hr-minimal/src/components/time-offs/leave-cards.tsx +++ b/examples/refine-hr-minimal/src/components/time-offs/leave-cards.tsx @@ -8,17 +8,9 @@ import { type TimeOff, } from "@/types"; -type Props = { - employeeId?: number; -}; - -export const TimeOffLeaveCards = (props: Props) => { +export const TimeOffLeaveCards = () => { const { data: employee, isLoading: isLoadingEmployee } = - useGetIdentity({ - queryOptions: { - enabled: !props.employeeId, - }, - }); + useGetIdentity(); const { data: timeOffsSick, isLoading: isLoadingTimeOffsSick } = useList({