From ea5e98502e9ad377dbcb6c1ab06ab1ae7208ae17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=B0=D0=B2=D0=BB=D0=B8=D0=BD=D0=B8=D0=BD=D0=B0=20?= =?UTF-8?q?=D0=A1=D0=BE=D1=84=D1=8C=D1=8F=20=D0=90=D0=BB=D0=B5=D0=BA=D1=81?= =?UTF-8?q?=D0=B0=D0=BD=D0=B4=D1=80=D0=BE=D0=B2=D0=BD=D0=B0?= Date: Fri, 13 Dec 2024 17:23:40 +0300 Subject: [PATCH] fix(kit): remove spare TUI_ANIMATIONS_DEFAULT_DURATION from skeleton duration --- projects/kit/directives/skeleton/skeleton.directive.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/projects/kit/directives/skeleton/skeleton.directive.ts b/projects/kit/directives/skeleton/skeleton.directive.ts index 9a3449b37714..3686766bd83d 100644 --- a/projects/kit/directives/skeleton/skeleton.directive.ts +++ b/projects/kit/directives/skeleton/skeleton.directive.ts @@ -11,10 +11,7 @@ import {CHAR_NO_BREAK_SPACE} from '@taiga-ui/cdk/constants'; import {tuiInjectElement} from '@taiga-ui/cdk/utils/dom'; import {tuiPure, tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous'; import {TUI_ANIMATIONS_SPEED} from '@taiga-ui/core/tokens'; -import { - TUI_ANIMATIONS_DEFAULT_DURATION, - tuiGetDuration, -} from '@taiga-ui/core/utils/miscellaneous'; +import {tuiGetDuration} from '@taiga-ui/core/utils/miscellaneous'; const FADE = [{opacity: 0.06}, {opacity: 1}]; @@ -42,9 +39,7 @@ class TuiSkeletonStyles {} export class TuiSkeleton implements OnChanges { private animation?: Animation; private readonly el = tuiInjectElement(); - private readonly duration = tuiGetDuration( - inject(TUI_ANIMATIONS_SPEED) * TUI_ANIMATIONS_DEFAULT_DURATION * 2, - ); + private readonly duration = tuiGetDuration(inject(TUI_ANIMATIONS_SPEED) * 2); protected readonly nothing = tuiWithStyles(TuiSkeletonStyles);