Skip to content

Commit

Permalink
fix(app): implement review notes
Browse files Browse the repository at this point in the history
  • Loading branch information
KarimovDev committed Oct 7, 2021
1 parent 854fe81 commit 310e659
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 4 additions & 6 deletions projects/core/modules/notifications/notification-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@ import {TuiContextWithImplicit} from '@taiga-ui/cdk';
import {TuiNotification} from '@taiga-ui/core/enums';
import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';

export type TuiNotificationAutoClose =
| boolean
| number
| ((status: TuiNotification) => number | boolean);

export interface TuiNotificationOptions {
readonly label?: PolymorpheusContent<TuiContextWithImplicit<TuiNotification>>;
readonly status?: TuiNotification;
readonly hasIcon?: boolean;
readonly autoClose?: TuiNotificationAutoClose;
readonly autoClose?:
| boolean
| number
| ((status: TuiNotification) => number | boolean);
readonly hasCloseButton?: boolean;
}

Expand Down
6 changes: 4 additions & 2 deletions projects/core/tokens/notification-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ import {InjectionToken} from '@angular/core';
import {TuiContextWithImplicit} from '@taiga-ui/cdk';
import {TuiNotification} from '@taiga-ui/core/enums';
import {PolymorpheusContent} from '@tinkoff/ng-polymorpheus';
import {TuiNotificationAutoClose} from '../modules/notifications';

export interface NotificationTokenOptions {
readonly autoClose: TuiNotificationAutoClose;
readonly autoClose:
| boolean
| number
| ((status: TuiNotification) => number | boolean);
readonly label: PolymorpheusContent<TuiContextWithImplicit<TuiNotification>>;
readonly status: TuiNotification;
readonly hasIcon: boolean;
Expand Down

0 comments on commit 310e659

Please sign in to comment.