From 1a668ba29d6a80a648ace4a777332f9d2f7b4a26 Mon Sep 17 00:00:00 2001 From: agonzalez97 Date: Thu, 10 Feb 2022 13:26:54 +0100 Subject: [PATCH] [Patch] Refactor mode spinner --- .../dxc-ngx-cdk/src/lib/dxc-spinner/dxc-spinner.component.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/projects/dxc-ngx-cdk/src/lib/dxc-spinner/dxc-spinner.component.ts b/projects/dxc-ngx-cdk/src/lib/dxc-spinner/dxc-spinner.component.ts index 21d1c083a..d0414bfc2 100644 --- a/projects/dxc-ngx-cdk/src/lib/dxc-spinner/dxc-spinner.component.ts +++ b/projects/dxc-ngx-cdk/src/lib/dxc-spinner/dxc-spinner.component.ts @@ -12,7 +12,6 @@ import { css } from "emotion"; import { CssUtils } from "../utils"; import { coerceBooleanProperty } from "@angular/cdk/coercion"; -type Mode = "large" | "small" | "overlay"; type Space = | "xxsmall" | "xsmall" @@ -46,7 +45,7 @@ export class DxcSpinnerComponent implements OnInit { /** * Available modes of the spinner ('large' | 'small' | 'overlay'). */ - @Input() mode: Mode = "large"; + @Input() mode: "large" | "small" | "overlay" = "large"; /** * Size of the margin to be applied to the component ('xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge'). * You can pass an object with 'top', 'bottom', 'left' and 'right' properties in order to specify different margin sizes.