Skip to content

Commit

Permalink
prettier write
Browse files Browse the repository at this point in the history
  • Loading branch information
khareemnurulla authored and rluders committed Aug 5, 2024
1 parent c22cfc7 commit 15de372
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions packages/ui/src/components/Datepicker/Views/Months.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { FC } from "react";
import { twMerge } from "tailwind-merge";
import { mergeDeep } from "../../../helpers/merge-deep";
import { useDatePickerContext } from "../DatepickerContext";
import { getFormattedDate, isMonthEqual, isDateInRange, Views } from "../helpers";
import { getFormattedDate, isDateInRange, isMonthEqual, Views } from "../helpers";

export interface FlowbiteDatepickerViewsMonthsTheme {
items: {
Expand All @@ -20,15 +20,7 @@ export interface DatepickerViewsMonthsProps {
}

export const DatepickerViewsMonth: FC<DatepickerViewsMonthsProps> = ({ theme: customTheme = {} }) => {
const {
theme: rootTheme,
minDate,
maxDate,
selectedDate,
language,
setViewDate,
setView,
} = useDatePickerContext();
const { theme: rootTheme, minDate, maxDate, selectedDate, language, setViewDate, setView } = useDatePickerContext();

const theme = mergeDeep(rootTheme.views.months, customTheme);

Expand Down

0 comments on commit 15de372

Please sign in to comment.