mirror of
https://github.com/FJurmanovic/wallet-web.git
synced 2026-11-11 07:41:09 +00:00
implemented balance headers
This commit is contained in:
@@ -1 +1,2 @@
|
||||
export * from "./menu-layout/MenuLayoutElement";
|
||||
export * from "./initial-layout/InitialLayoutElement";
|
||||
|
||||
31
src/layouts/initial-layout/InitialLayoutElement.ts
Normal file
31
src/layouts/initial-layout/InitialLayoutElement.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
import { controller, target } from "@github/catalyst";
|
||||
import { closest } from "core/utils";
|
||||
import { html, TemplateResult } from "@github/jtml";
|
||||
import { BaseLayoutElement } from "common/layouts";
|
||||
import { AppMainElement } from "components/";
|
||||
|
||||
@controller
|
||||
class InitialLayoutElement extends BaseLayoutElement {
|
||||
@closest appMain: AppMainElement;
|
||||
@target appPage: HTMLDivElement;
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
|
||||
elementConnected = (): void => {
|
||||
this.update();
|
||||
};
|
||||
|
||||
elementDisconnected = (appMain: AppMainElement): void => {};
|
||||
|
||||
render = (): TemplateResult => {
|
||||
return html`
|
||||
<div data-target="initial-layout.appPage">
|
||||
<app-slot data-target="initial-layout.appSlot"></app-slot>
|
||||
</div>
|
||||
`;
|
||||
};
|
||||
}
|
||||
|
||||
export type { InitialLayoutElement };
|
||||
Reference in New Issue
Block a user