mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
perf(all): minify better by using arrow functions (#18730)
This commit is contained in:
@ -459,11 +459,11 @@ export class Alert implements ComponentInterface, OverlayInterface {
|
||||
}
|
||||
}
|
||||
|
||||
function buttonClass(button: AlertButton): CssClassMap {
|
||||
const buttonClass = (button: AlertButton): CssClassMap => {
|
||||
return {
|
||||
'alert-button': true,
|
||||
'ion-focusable': true,
|
||||
'ion-activatable': true,
|
||||
...getClassMap(button.cssClass)
|
||||
};
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user