diff --git a/library/hooks/src/index.tsx b/library/hooks/src/index.tsx index 8cf861f..1abb78f 100644 --- a/library/hooks/src/index.tsx +++ b/library/hooks/src/index.tsx @@ -5,4 +5,4 @@ export * from "./useEffectIgnoreInitial"; export * from "./useOnResize"; export * from "./useOutsideAlerter"; export * from "./useSize"; -export * from "./useTime"; +export * from "./useTimeLeft"; diff --git a/library/hooks/src/useTime/defaults.ts b/library/hooks/src/useTimeLeft/defaults.ts similarity index 100% rename from library/hooks/src/useTime/defaults.ts rename to library/hooks/src/useTimeLeft/defaults.ts diff --git a/library/hooks/src/useTime/index.tsx b/library/hooks/src/useTimeLeft/index.tsx similarity index 100% rename from library/hooks/src/useTime/index.tsx rename to library/hooks/src/useTimeLeft/index.tsx diff --git a/library/hooks/src/util.ts b/library/hooks/src/util.ts index 519a941..20f01a1 100644 --- a/library/hooks/src/util.ts +++ b/library/hooks/src/util.ts @@ -3,7 +3,7 @@ SPDX-License-Identifier: GPL-3.0-only */ import { TimeleftDuration } from "@w3ux/types"; import { differenceInDays, getUnixTime, intervalToDuration } from "date-fns"; -import { defaultDuration } from "./useTime/defaults"; +import { defaultDuration } from "./useTimeLeft/defaults"; // calculates the current timeleft duration. export const getDuration = (toDate: Date | null): TimeleftDuration => {