From 485499e0d222aa4dd9ba91e63819b5b1729d327c Mon Sep 17 00:00:00 2001 From: Kasra Karami Date: Tue, 30 Jul 2024 14:34:53 +0330 Subject: [PATCH 1/2] Change Toastr to Toaster --- src/app/pages/modal-overlays/toastr/toastr.component.ts | 4 ++-- src/app/pages/pages-menu.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/pages/modal-overlays/toastr/toastr.component.ts b/src/app/pages/modal-overlays/toastr/toastr.component.ts index 3086f7706..e9f38e0bb 100644 --- a/src/app/pages/modal-overlays/toastr/toastr.component.ts +++ b/src/app/pages/modal-overlays/toastr/toastr.component.ts @@ -1,7 +1,6 @@ import { Component } from '@angular/core'; import { ToasterConfig } from 'angular2-toaster'; -import 'style-loader!angular2-toaster/toaster.css'; import { NbComponentStatus, NbGlobalLogicalPosition, @@ -9,6 +8,7 @@ import { NbGlobalPosition, NbToastrService, } from '@nebular/theme'; +import 'style-loader!angular2-toaster/toaster.css'; @Component({ selector: 'ngx-toastr', @@ -52,7 +52,7 @@ export class ToastrComponent { quotes = [ { title: null, body: 'We rock at Angular' }, { title: null, body: 'Titles are not always needed' }, - { title: null, body: 'Toastr rock!' }, + { title: null, body: 'Toaster rock!' }, ]; makeToast() { diff --git a/src/app/pages/pages-menu.ts b/src/app/pages/pages-menu.ts index 5c426c8d1..e71c8f1f0 100644 --- a/src/app/pages/pages-menu.ts +++ b/src/app/pages/pages-menu.ts @@ -50,7 +50,7 @@ export const MENU_ITEMS: NbMenuItem[] = [ link: '/pages/modal-overlays/popover', }, { - title: 'Toastr', + title: 'Toaster', link: '/pages/modal-overlays/toastr', }, { From eb2128376bb54792da1fa031803e04b24a43bcc9 Mon Sep 17 00:00:00 2001 From: Kasra Karami Date: Tue, 30 Jul 2024 14:40:52 +0330 Subject: [PATCH 2/2] reverse organize imports to default --- src/app/pages/modal-overlays/toastr/toastr.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/pages/modal-overlays/toastr/toastr.component.ts b/src/app/pages/modal-overlays/toastr/toastr.component.ts index e9f38e0bb..2a5a60139 100644 --- a/src/app/pages/modal-overlays/toastr/toastr.component.ts +++ b/src/app/pages/modal-overlays/toastr/toastr.component.ts @@ -1,6 +1,7 @@ import { Component } from '@angular/core'; import { ToasterConfig } from 'angular2-toaster'; +import 'style-loader!angular2-toaster/toaster.css'; import { NbComponentStatus, NbGlobalLogicalPosition, @@ -8,7 +9,6 @@ import { NbGlobalPosition, NbToastrService, } from '@nebular/theme'; -import 'style-loader!angular2-toaster/toaster.css'; @Component({ selector: 'ngx-toastr',