Skip to content

Commit

Permalink
(fix) Restore offline patient banner (#818)
Browse files Browse the repository at this point in the history
  • Loading branch information
icrc-jofrancisco authored Nov 27, 2023
1 parent 924a933 commit c91d10c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/apps/esm-primary-navigation-app/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { syncUserLanguagePreference } from "./offline";
import primaryNavRootComponent from "./root.component";
import userPanelComponent from "./components/user-panel-switcher-item/user-panel-switcher.component";
import localeChangerComponent from "./components/choose-locale/change-locale.component";
import offlineBannerComponent from "./components/offline-banner/offline-banner.component";
import genericLinkComponent, {
genericLinkConfigSchema,
} from "./components/generic-link/generic-link.component";
Expand Down Expand Up @@ -48,6 +49,8 @@ export const userPanel = getSyncLifecycle(userPanelComponent, options);

export const localeChanger = getSyncLifecycle(localeChangerComponent, options);

export const offlineBanner = getSyncLifecycle(offlineBannerComponent, options);

export const linkComponent = getSyncLifecycle(genericLinkComponent, {
featureName: "Link",
moduleName,
Expand Down
8 changes: 8 additions & 0 deletions packages/apps/esm-primary-navigation-app/src/routes.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@
"offline": true,
"order": 1
},
{
"name": "offline-banner",
"slot": "user-panel-slot",
"component": "offlineBanner",
"online": false,
"offline": true,
"order": 1
},
{
"name": "link",
"component": "linkComponent",
Expand Down

0 comments on commit c91d10c

Please sign in to comment.