Skip to content

Commit

Permalink
refactor: constants => consts
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrobertbrooks committed Oct 6, 2024
1 parent b3caaac commit d99f56e
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 5 deletions.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/contexts/ParamsContext.tsx
Original file line number Diff line number Diff line change
@@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/calendar/DateSelector.tsx
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/pages/calendar/ViewToggle.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { MONTH_VIEW, WEEK_VIEW } from "../../constants";
import { MONTH_VIEW, WEEK_VIEW } from "../../consts";
import { useParamsContext } from "../../contexts";

const btnClassName =
Expand Down
2 changes: 1 addition & 1 deletion src/pages/calendar/index.tsx
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/calendar.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { MONTH_VIEW, WEEK_VIEW } from "../constants";
import { MONTH_VIEW, WEEK_VIEW } from "../consts";
import {
getStartOfWeek,
getEndOfWeek,
Expand Down

0 comments on commit d99f56e

Please sign in to comment.