CST-5309 changes for error page component

This commit is contained in:
nikunj59
2022-06-07 15:34:47 +05:30
committed by Luca Giamminonni
parent 43f4ff7cde
commit a9fcdce960
8 changed files with 83 additions and 1 deletions

View File

@@ -0,0 +1,26 @@
import { Component } from '@angular/core';
import { ThemedComponent } from '../shared/theme-support/themed.component';
import { PageErrorComponent } from './page-error.component';
/**
* Themed wrapper for PageErrorComponent
*/
@Component({
selector: 'ds-themed-search-page',
styleUrls: [],
templateUrl: '../shared/theme-support/themed.component.html',
})
export class ThemedPageErrorComponent extends ThemedComponent<PageErrorComponent> {
protected getComponentName(): string {
return 'PageErrorComponent';
}
protected importThemedComponent(themeName: string): Promise<any> {
return import(`../../themes/${themeName}/app/page-error/page-error.component`);
}
protected importUnthemedComponent(): Promise<any> {
return import(`src/app/page-error/page-error.component`);
}
}