Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions src/components/Calendar/Months.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import dayjs from "dayjs";
import React, { useContext } from "react";

import DatepickerContext from "../../contexts/DatepickerContext";
import { loadLanguageModule, shortString, ucFirst } from "../../helpers";
import { loadLanguageModule } from "../../helpers";
import { RoundedButton } from "../utils";

interface Props {
Expand All @@ -23,13 +23,9 @@ const Months: React.FC<Props> = ({ clickMonth }) => {
}}
>
<>
{ucFirst(
shortString(
dayjs(`2022-${1 + item}-01`)
.locale(i18n)
.format("MMM")
)
)}
{dayjs(`2022-${1 + item}-01`)
.locale(i18n)
.format("MMM")}
</>
</RoundedButton>
))}
Expand Down
5 changes: 2 additions & 3 deletions src/components/Calendar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ import {
getNumberOfDay,
loadLanguageModule,
nextMonth,
previousMonth,
shortString
previousMonth
} from "../../helpers";
import {
ChevronLeftIcon,
Expand Down Expand Up @@ -263,7 +262,7 @@ const Calendar: React.FC<Props> = ({
hideYears();
}}
>
<>{shortString(calendarData.date.locale(i18n).format("MMM"))}</>
<>{calendarData.date.locale(i18n).format("MMM")}</>
</RoundedButton>
</div>

Expand Down
Loading