File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ interface Context {
5959 currentLocale : string
6060 dateFnsLocale ?: Locale ,
6161 datetime : ( date : Date | number , options ?: Intl . DateTimeFormatOptions ) => string ,
62- formatDate : ( value : Date | number | string , options : FormatDateOptions ) => string ,
62+ formatDate : ( value : Date | number | string , options ? : FormatDateOptions ) => string ,
6363 formatList : ( listFormat : string [ ] , options ?: IntlListFormatOptions ) => string ,
6464 formatNumber : ( numb : number , options ?: Intl . NumberFormatOptions ) => string ,
6565 formatUnit : ( value : number , options : FormatUnitOptions ) => string ,
@@ -229,7 +229,7 @@ const I18nContextProvider = ({
229229 )
230230
231231 const formatDate = useCallback (
232- ( value : Date | number | string , options : FormatDateOptions ) =>
232+ ( value : Date | number | string , options : FormatDateOptions = 'short' ) =>
233233 dateFormat ( currentLocale , value , options ) ,
234234 [ currentLocale ] ,
235235 )
You can’t perform that action at this time.
0 commit comments