File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -209,7 +209,8 @@ const Days: React.FC<Props> = ({
209
209
return cn (
210
210
baseClass ,
211
211
! activeDateData ( day ) . active ? hoverClassByDay ( day ) : activeDateData ( day ) . className ,
212
- isDateDisabled ( day , type ) && "line-through"
212
+ isDateDisabled ( day , type ) && "line-through" ,
213
+ ( type == "previous" || type == "next" ) && "text-gray-400"
213
214
) ;
214
215
} ,
215
216
[ activeDateData , hoverClassByDay , isDateDisabled ]
@@ -345,7 +346,7 @@ const Days: React.FC<Props> = ({
345
346
type = "button"
346
347
key = { index }
347
348
disabled = { isDateDisabled ( item , "previous" ) }
348
- className = "flex items-center justify-center text-gray-400 h-12 w-12 lg:w-10 lg:h-10"
349
+ className = { ` ${ buttonClass ( item , "previous" ) } ` }
349
350
onClick = { ( ) => handleClickDay ( item , "previous" ) }
350
351
onMouseOver = { ( ) => {
351
352
hoverDay ( item , "previous" ) ;
@@ -375,7 +376,7 @@ const Days: React.FC<Props> = ({
375
376
type = "button"
376
377
key = { index }
377
378
disabled = { isDateDisabled ( item , "next" ) }
378
- className = "flex items-center justify-center text-gray-400 h-12 w-12 lg:w-10 lg:h-10"
379
+ className = { ` ${ buttonClass ( item , "next" ) } ` }
379
380
onClick = { ( ) => handleClickDay ( item , "next" ) }
380
381
onMouseOver = { ( ) => {
381
382
hoverDay ( item , "next" ) ;
You can’t perform that action at this time.
0 commit comments