mirror of
https://github.com/FJurmanovic/wallet-web.git
synced 2026-02-06 06:08:10 +00:00
added some style
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { controller } from "@github/catalyst";
|
||||
import { controller, target } from "@github/catalyst";
|
||||
import { closest } from "core/utils";
|
||||
import { html, TemplateResult } from "@github/jtml";
|
||||
import { BaseLayoutElement } from "common/layouts";
|
||||
@@ -7,6 +7,7 @@ import { AppMainElement } from "components/";
|
||||
@controller
|
||||
class MenuLayoutElement extends BaseLayoutElement {
|
||||
@closest appMain: AppMainElement;
|
||||
@target appPage: HTMLDivElement;
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
@@ -38,8 +39,10 @@ class MenuLayoutElement extends BaseLayoutElement {
|
||||
render = (): TemplateResult => {
|
||||
const _isAuth = this.isAuth;
|
||||
return html`
|
||||
${_isAuth ? html`<app-menu></app-menu>` : html``}
|
||||
<app-slot data-target="menu-layout.appSlot"></app-slot>
|
||||
<div data-target="menu-layout.appPage">
|
||||
${_isAuth ? html`<app-menu></app-menu>` : html``}
|
||||
<app-slot data-target="menu-layout.appSlot"></app-slot>
|
||||
</div>
|
||||
`;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user