diff --git a/client/src/app/routes/nova/SlotPage.tsx b/client/src/app/routes/nova/SlotPage.tsx index 5094141db..a8d6aed2e 100644 --- a/client/src/app/routes/nova/SlotPage.tsx +++ b/client/src/app/routes/nova/SlotPage.tsx @@ -1,5 +1,5 @@ import React from "react"; -import useSlotCommitment from "~/helpers/nova/hooks/useSlotCommitment"; +import useuseSlotDetails from "~/helpers/nova/hooks/useSlotDetails"; import StatusPill from "~/app/components/nova/StatusPill"; import PageDataRow, { IPageDataRow } from "~/app/components/nova/PageDataRow"; import Modal from "~/app/components/Modal"; @@ -24,7 +24,7 @@ export default function SlotPage({ network: string; slotIndex: string; }>): React.JSX.Element { - const { slotCommitment } = useSlotCommitment(network, slotIndex); + const { slotCommitment } = useuseSlotDetails(network, slotIndex); const parsedSlotIndex = parseSlotIndex(slotIndex); const slotState = slotCommitment ? SlotState.Finalized : SlotState.Pending; diff --git a/client/src/helpers/nova/hooks/useSlotCommitment.ts b/client/src/helpers/nova/hooks/useSlotDetails.ts similarity index 93% rename from client/src/helpers/nova/hooks/useSlotCommitment.ts rename to client/src/helpers/nova/hooks/useSlotDetails.ts index c3b5ee496..45da0620f 100644 --- a/client/src/helpers/nova/hooks/useSlotCommitment.ts +++ b/client/src/helpers/nova/hooks/useSlotDetails.ts @@ -6,13 +6,13 @@ import { useIsMounted } from "~/helpers/hooks/useIsMounted"; import { NOVA } from "~/models/config/protocolVersion"; import { NovaApiClient } from "~/services/nova/novaApiClient"; -interface IUseSlotData { +interface IUseSlotDetails { slotCommitment: SlotCommitment | null; error: string | undefined; isLoading: boolean; } -export default function useSlotData(network: string, slotIndex: string): IUseSlotData { +export default function useSlotDetails(network: string, slotIndex: string): IUseSlotDetails { const isMounted = useIsMounted(); const [apiClient] = useState(ServiceFactory.get(`api-client-${NOVA}`)); const [slotCommitment, setSlotCommitment] = useState(null);