Fix post-upgrade errors

This commit is contained in:
eugene-sinitsyn 2020-03-03 15:41:09 +03:00 committed by Maksim Karatkevich
parent bb1a759acf
commit 8d749466f9
5 changed files with 12 additions and 23 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(