diff --git a/src/constants/calendar.ts b/src/consts/calendar.ts similarity index 100% rename from src/constants/calendar.ts rename to src/consts/calendar.ts diff --git a/src/constants/index.ts b/src/consts/index.ts similarity index 100% rename from src/constants/index.ts rename to src/consts/index.ts diff --git a/src/contexts/ParamsContext.tsx b/src/contexts/ParamsContext.tsx index aa89edd..3958043 100644 --- a/src/contexts/ParamsContext.tsx +++ b/src/contexts/ParamsContext.tsx @@ -1,6 +1,6 @@ import React, { createContext, useContext } from "react"; import { useQueryParam, StringParam } from "use-query-params"; -import { WEEK_VIEW } from "../constants"; +import { WEEK_VIEW } from "../consts"; import { getToday, toDateParam } from "../utils"; type ParamsContextValue = { diff --git a/src/pages/calendar/DateSelector.tsx b/src/pages/calendar/DateSelector.tsx index 4128a0f..0d125fb 100644 --- a/src/pages/calendar/DateSelector.tsx +++ b/src/pages/calendar/DateSelector.tsx @@ -1,6 +1,6 @@ import { useCallback } from "react"; import { FaChevronLeft, FaChevronRight } from "react-icons/fa6"; -import { MONTH_VIEW, WEEK_VIEW } from "../../constants"; +import { MONTH_VIEW, WEEK_VIEW } from "../../consts"; import { getToday, getPreviousWeek, diff --git a/src/pages/calendar/ViewToggle.tsx b/src/pages/calendar/ViewToggle.tsx index 9c840b7..58e31b9 100644 --- a/src/pages/calendar/ViewToggle.tsx +++ b/src/pages/calendar/ViewToggle.tsx @@ -1,4 +1,4 @@ -import { MONTH_VIEW, WEEK_VIEW } from "../../constants"; +import { MONTH_VIEW, WEEK_VIEW } from "../../consts"; import { useParamsContext } from "../../contexts"; const btnClassName = diff --git a/src/pages/calendar/index.tsx b/src/pages/calendar/index.tsx index 2f65f09..f9adeab 100644 --- a/src/pages/calendar/index.tsx +++ b/src/pages/calendar/index.tsx @@ -1,5 +1,5 @@ import { Outlet } from "react-router-dom"; -import { MONTH_VIEW, WEEK_VIEW } from "../../constants"; +import { MONTH_VIEW, WEEK_VIEW } from "../../consts"; import { useParamsContext } from "../../contexts"; import { useScreen } from "../../hooks"; import { diff --git a/src/utils/calendar.ts b/src/utils/calendar.ts index 9fc0caa..206e4de 100644 --- a/src/utils/calendar.ts +++ b/src/utils/calendar.ts @@ -1,4 +1,4 @@ -import { MONTH_VIEW, WEEK_VIEW } from "../constants"; +import { MONTH_VIEW, WEEK_VIEW } from "../consts"; import { getStartOfWeek, getEndOfWeek,