Skip to content

Commit

Permalink
refactor(react-date-picker): reuse monospace
Browse files Browse the repository at this point in the history
  • Loading branch information
Serdar Sayin committed Oct 13, 2023
1 parent 5c296aa commit 5beb333
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import {
UseDatePickerProps,
useDatePicker,
} from "@codedazur/react-date-picker";
import { Monospace } from "./components/Monospace";
import { Monospace } from "../../components/Monospace";

const DatePicker: FunctionComponent<UseDatePickerProps> = (props) => {
const { cursor, dates, month, toNextMonth, toPreviousMonth } =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ import docs from "./useSingleDatePicker.docs.mdx";
import { addDays, Day } from "date-fns";
import { enGB, enUS, es, nl, ru } from "date-fns/locale";
import { FunctionComponent, useMemo, useRef, useState } from "react";
import { Monospace } from "./components/Monospace";
import { Weekdays } from "./components/Weekdays";
import { Days } from "./components/Days";
import { Navigation } from "./components/Navigation";
import { Monospace } from "../../components/Monospace";

const localeMap: Record<string, Locale> = {
"en-US": enUS,
Expand Down

0 comments on commit 5beb333

Please sign in to comment.