From 33ffe895e299c4d0929705799c04b6d3cc4b72b2 Mon Sep 17 00:00:00 2001 From: Maksim Ivanov Date: Thu, 20 Jun 2024 11:54:11 +0300 Subject: [PATCH] refactor: drop TabBar module (#7858) --- projects/addon-mobile/components/tab-bar/index.ts | 2 +- .../addon-mobile/components/tab-bar/tab-bar.module.ts | 11 ----------- projects/addon-mobile/components/tab-bar/tab-bar.ts | 9 +++++++++ 3 files changed, 10 insertions(+), 12 deletions(-) delete mode 100644 projects/addon-mobile/components/tab-bar/tab-bar.module.ts create mode 100644 projects/addon-mobile/components/tab-bar/tab-bar.ts diff --git a/projects/addon-mobile/components/tab-bar/index.ts b/projects/addon-mobile/components/tab-bar/index.ts index a8a40238c9d3..0bacb340a18c 100644 --- a/projects/addon-mobile/components/tab-bar/index.ts +++ b/projects/addon-mobile/components/tab-bar/index.ts @@ -1,4 +1,4 @@ +export * from './tab-bar'; export * from './tab-bar.component'; -export * from './tab-bar.module'; export * from './tab-bar-item.component'; export * from './tab-bar-item.directive'; diff --git a/projects/addon-mobile/components/tab-bar/tab-bar.module.ts b/projects/addon-mobile/components/tab-bar/tab-bar.module.ts deleted file mode 100644 index 25c9c43921a9..000000000000 --- a/projects/addon-mobile/components/tab-bar/tab-bar.module.ts +++ /dev/null @@ -1,11 +0,0 @@ -import {NgModule} from '@angular/core'; - -import {TuiTabBarComponent} from './tab-bar.component'; -import {TuiTabBarItemComponent} from './tab-bar-item.component'; -import {TuiTabBarItemDirective} from './tab-bar-item.directive'; - -@NgModule({ - imports: [TuiTabBarComponent, TuiTabBarItemComponent, TuiTabBarItemDirective], - exports: [TuiTabBarComponent, TuiTabBarItemComponent, TuiTabBarItemDirective], -}) -export class TuiTabBar {} diff --git a/projects/addon-mobile/components/tab-bar/tab-bar.ts b/projects/addon-mobile/components/tab-bar/tab-bar.ts new file mode 100644 index 000000000000..cd1e084a629d --- /dev/null +++ b/projects/addon-mobile/components/tab-bar/tab-bar.ts @@ -0,0 +1,9 @@ +import {TuiTabBarComponent} from './tab-bar.component'; +import {TuiTabBarItemComponent} from './tab-bar-item.component'; +import {TuiTabBarItemDirective} from './tab-bar-item.directive'; + +export const TuiTabBar = [ + TuiTabBarComponent, + TuiTabBarItemComponent, + TuiTabBarItemDirective, +] as const;