From daa318baa6b2053a63e7040b99bd524b143865a4 Mon Sep 17 00:00:00 2001 From: Ross Bulat Date: Tue, 12 Nov 2024 11:20:01 +0700 Subject: [PATCH] chore: chore: fix capitalisation part 2 --- library/hooks/src/index.tsx | 2 +- library/hooks/src/{useTime => useTimeLeft}/defaults.ts | 0 library/hooks/src/{useTime => useTimeLeft}/index.tsx | 0 library/hooks/src/util.ts | 2 +- 4 files changed, 2 insertions(+), 2 deletions(-) rename library/hooks/src/{useTime => useTimeLeft}/defaults.ts (100%) rename library/hooks/src/{useTime => useTimeLeft}/index.tsx (100%) 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 => {