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 @@ -27,8 +27,8 @@ function getFontFamily(fontFamily: string | null | undefined) {
2727 return undefined ;
2828}
2929
30- const getPadding = ( padding : ButtonProps [ 'style' ] extends { padding ?: infer P } ? P : never ) =>
31- padding ? `${ ( padding as any ) . top } px ${ ( padding as any ) . right } px ${ ( padding as any ) . bottom } px ${ ( padding as any ) . left } px` : undefined ;
30+ const getPadding = ( padding : { top : number ; right : number ; bottom : number ; left : number } | null | undefined ) =>
31+ padding ? `${ padding . top } px ${ padding . right } px ${ padding . bottom } px ${ padding . left } px` : undefined ;
3232
3333function getRoundedCorners ( props : ButtonProps [ 'props' ] ) {
3434 const buttonStyle = props ?. buttonStyle ?? ButtonPropsDefaults . buttonStyle ;
You can’t perform that action at this time.
0 commit comments