From 23c5dd66fc0e716e94aa769e4b2fd83170d1141c Mon Sep 17 00:00:00 2001 From: Yosvel Quintero Date: Wed, 19 Jun 2024 14:17:12 +0700 Subject: [PATCH] refactor: Module UI --- .../modules/ui/src/lib/components/organisms/index.ts | 1 - .../organisms/invoice/invoice-view.component.html | 4 ---- .../organisms/invoice/invoice-view.component.ts | 12 ------------ packages/modules/ui/src/lib/modules-ui.module.ts | 2 -- 4 files changed, 19 deletions(-) delete mode 100644 packages/modules/ui/src/lib/components/organisms/invoice/invoice-view.component.html delete mode 100644 packages/modules/ui/src/lib/components/organisms/invoice/invoice-view.component.ts diff --git a/packages/modules/ui/src/lib/components/organisms/index.ts b/packages/modules/ui/src/lib/components/organisms/index.ts index a860e58e..a95aa005 100644 --- a/packages/modules/ui/src/lib/components/organisms/index.ts +++ b/packages/modules/ui/src/lib/components/organisms/index.ts @@ -26,7 +26,6 @@ export * from './header/header-navigation-item.component'; export * from './header/header-navigation.component'; export * from './header/header-toolbar.component'; export * from './header/header.component'; -export * from './invoice/invoice-view.component'; export * from './flex-grid/flex-grid.directive'; export * from './meta/meta.component'; export * from './order/order-view.component'; diff --git a/packages/modules/ui/src/lib/components/organisms/invoice/invoice-view.component.html b/packages/modules/ui/src/lib/components/organisms/invoice/invoice-view.component.html deleted file mode 100644 index adb38515..00000000 --- a/packages/modules/ui/src/lib/components/organisms/invoice/invoice-view.component.html +++ /dev/null @@ -1,4 +0,0 @@ - -
-  {{ invoice | json }}
-
diff --git a/packages/modules/ui/src/lib/components/organisms/invoice/invoice-view.component.ts b/packages/modules/ui/src/lib/components/organisms/invoice/invoice-view.component.ts deleted file mode 100644 index 0b6985a5..00000000 --- a/packages/modules/ui/src/lib/components/organisms/invoice/invoice-view.component.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { ChangeDetectionStrategy, Component, Input } from '@angular/core'; - -import { IInvoice } from '@console-core/types'; - -@Component({ - selector: 'rc-invoice-view', - templateUrl: './invoice-view.component.html', - changeDetection: ChangeDetectionStrategy.OnPush, -}) -export class RcInvoiceViewComponent { - @Input({ required: true }) invoice!: IInvoice; -} diff --git a/packages/modules/ui/src/lib/modules-ui.module.ts b/packages/modules/ui/src/lib/modules-ui.module.ts index b825e0cf..2500fcce 100644 --- a/packages/modules/ui/src/lib/modules-ui.module.ts +++ b/packages/modules/ui/src/lib/modules-ui.module.ts @@ -84,7 +84,6 @@ import { RcCrudEditComponent, RcOrderViewComponent, RcProductViewComponent, - RcInvoiceViewComponent, } from './components/organisms'; import { RcPageConfirmPasswordComponent, @@ -198,7 +197,6 @@ const organisms = [ RcCrudEditComponent, RcOrderViewComponent, RcProductViewComponent, - RcInvoiceViewComponent, ]; const pages = [