Fix post-upgrade errors

This commit is contained in:
eugene-sinitsyn 2020-03-03 15:41:09 +03:00
parent d673c512ec
commit 88020acd3e
6 changed files with 17 additions and 25 deletions

View file

@ -74,18 +74,10 @@ const PIPES = [
imports: [CommonModule, ...NB_MODULES],
exports: [CommonModule, ...PIPES, ...COMPONENTS],
declarations: [...COMPONENTS, ...PIPES],
providers: [
...NbThemeModule.forRoot(
{
name: 'default',
},
[ DEFAULT_THEME, COSMIC_THEME, CORPORATE_THEME, DARK_THEME ],
).providers,
]
})
export class ThemeModule {
static forRoot(): ModuleWithProviders<ThemeModule> {
return <ModuleWithProviders>{
return {
ngModule: ThemeModule,
providers: [
...NbThemeModule.forRoot(