File tree Expand file tree Collapse file tree 2 files changed +6
-11
lines changed Expand file tree Collapse file tree 2 files changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import dayjs from "dayjs";
22import React , { useContext } from "react" ;
33
44import DatepickerContext from "../../contexts/DatepickerContext" ;
5- import { loadLanguageModule , shortString , ucFirst } from "../../helpers" ;
5+ import { loadLanguageModule } from "../../helpers" ;
66import { RoundedButton } from "../utils" ;
77
88interface Props {
@@ -23,13 +23,9 @@ const Months: React.FC<Props> = ({ clickMonth }) => {
2323 } }
2424 >
2525 < >
26- { ucFirst (
27- shortString (
28- dayjs ( `2022-${ 1 + item } -01` )
29- . locale ( i18n )
30- . format ( "MMM" )
31- )
32- ) }
26+ { dayjs ( `2022-${ 1 + item } -01` )
27+ . locale ( i18n )
28+ . format ( "MMM" ) }
3329 </ >
3430 </ RoundedButton >
3531 ) ) }
Original file line number Diff line number Diff line change @@ -11,8 +11,7 @@ import {
1111 getNumberOfDay ,
1212 loadLanguageModule ,
1313 nextMonth ,
14- previousMonth ,
15- shortString
14+ previousMonth
1615} from "../../helpers" ;
1716import {
1817 ChevronLeftIcon ,
@@ -263,7 +262,7 @@ const Calendar: React.FC<Props> = ({
263262 hideYears ( ) ;
264263 } }
265264 >
266- < > { shortString ( calendarData . date . locale ( i18n ) . format ( "MMM" ) ) } </ >
265+ < > { calendarData . date . locale ( i18n ) . format ( "MMM" ) } </ >
267266 </ RoundedButton >
268267 </ div >
269268
You can’t perform that action at this time.
0 commit comments