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";
2
2
import React , { useContext } from "react" ;
3
3
4
4
import DatepickerContext from "../../contexts/DatepickerContext" ;
5
- import { loadLanguageModule , shortString , ucFirst } from "../../helpers" ;
5
+ import { loadLanguageModule } from "../../helpers" ;
6
6
import { RoundedButton } from "../utils" ;
7
7
8
8
interface Props {
@@ -23,13 +23,9 @@ const Months: React.FC<Props> = ({ clickMonth }) => {
23
23
} }
24
24
>
25
25
< >
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" ) }
33
29
</ >
34
30
</ RoundedButton >
35
31
) ) }
Original file line number Diff line number Diff line change @@ -11,8 +11,7 @@ import {
11
11
getNumberOfDay ,
12
12
loadLanguageModule ,
13
13
nextMonth ,
14
- previousMonth ,
15
- shortString
14
+ previousMonth
16
15
} from "../../helpers" ;
17
16
import {
18
17
ChevronLeftIcon ,
@@ -263,7 +262,7 @@ const Calendar: React.FC<Props> = ({
263
262
hideYears ( ) ;
264
263
} }
265
264
>
266
- < > { shortString ( calendarData . date . locale ( i18n ) . format ( "MMM" ) ) } </ >
265
+ < > { calendarData . date . locale ( i18n ) . format ( "MMM" ) } </ >
267
266
</ RoundedButton >
268
267
</ div >
269
268
You can’t perform that action at this time.
0 commit comments