diff --git a/app/src/app/app.component.spec.ts b/app/src/app/app.component.spec.ts index 58d61bc..eb4b93b 100644 --- a/app/src/app/app.component.spec.ts +++ b/app/src/app/app.component.spec.ts @@ -17,7 +17,6 @@ import {provideContent} from '@dev/content-data-access' import {AppInterceptor} from './app.interceptor' import {AppComponent} from './app.component' import {env} from '../envs/env' -import {provideAppIcons} from './app.providers' describe('AppComponent', () => { beforeEach(async () => { @@ -39,7 +38,6 @@ describe('AppComponent', () => { provideUser(env.production, env.api.account), provideRail(env.production, env.api.learning), provideContent(env.production, env.api.content), - provideAppIcons(), provideLoader(), { provide: LOCALE_ID, diff --git a/app/src/app/app.component.ts b/app/src/app/app.component.ts index e3f1bf6..acbe494 100644 --- a/app/src/app/app.component.ts +++ b/app/src/app/app.component.ts @@ -47,7 +47,7 @@ import { - + source Meu conteúdo diff --git a/app/src/app/app.module.ts b/app/src/app/app.module.ts index 5c4ae61..22051bc 100644 --- a/app/src/app/app.module.ts +++ b/app/src/app/app.module.ts @@ -23,7 +23,6 @@ import {provideRail} from '@dev/learning-data-access' import {provideContent} from '@dev/content-data-access' import {LoaderComponent} from './loader/loader.component' import {AppInterceptor} from './app.interceptor' -import {provideAppIcons} from './app.providers' import {AppComponent} from './app.component' import {appRoutes} from './app.routes' import {env} from '../envs/env' @@ -53,7 +52,6 @@ registerLocaleData(pt, 'pt-BR', BR) provideUser(env.production, env.api.account), provideRail(env.production, env.api.learning), provideContent(env.production, env.api.content), - provideAppIcons(), provideLoader(), { provide: LOCALE_ID, diff --git a/app/src/app/app.providers.ts b/app/src/app/app.providers.ts deleted file mode 100644 index 46fb8ac..0000000 --- a/app/src/app/app.providers.ts +++ /dev/null @@ -1,19 +0,0 @@ -import {APP_INITIALIZER} from '@angular/core' -import {MatIconRegistry} from '@angular/material/icon' -import {DomSanitizer} from '@angular/platform-browser' - -export const provideAppIcons = () => { - return { - provide: APP_INITIALIZER, - useFactory(registry: MatIconRegistry, sanitizer: DomSanitizer) { - const SMB_SHARE = ` - - ` - registry.addSvgIconLiteral( - 'smb-share', - sanitizer.bypassSecurityTrustHtml(SMB_SHARE) - ) - }, - deps: [MatIconRegistry, DomSanitizer], - } -}