Skip to content

Commit

Permalink
fix(kit): remove spare TUI_ANIMATIONS_DEFAULT_DURATION from skeleton …
Browse files Browse the repository at this point in the history
…duration
  • Loading branch information
Павлинина Софья Александровна authored and splincode committed Dec 15, 2024
1 parent d2616de commit ea5e985
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions projects/kit/directives/skeleton/skeleton.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}];

Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit ea5e985

Please sign in to comment.