mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-08 23:58:13 +08:00
perf(all): minify better by using arrow functions (#18730)
This commit is contained in:
@ -301,7 +301,7 @@ export class Toast implements ComponentInterface, OverlayInterface {
|
||||
}
|
||||
}
|
||||
|
||||
function buttonClass(button: ToastButton): CssClassMap {
|
||||
const buttonClass = (button: ToastButton): CssClassMap => {
|
||||
return {
|
||||
'toast-button': true,
|
||||
'toast-button-icon-only': button.icon !== undefined && button.text === undefined,
|
||||
@ -310,4 +310,4 @@ function buttonClass(button: ToastButton): CssClassMap {
|
||||
'ion-activatable': true,
|
||||
...getClassMap(button.cssClass)
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user