Clan-app: edit clan, memoize active clan

This commit is contained in:
Johannes Kirschbauer
2024-07-29 17:05:06 +02:00
parent d80488f786
commit 6a13cb80cb
7 changed files with 286 additions and 78 deletions

View File

@@ -1,7 +1,7 @@
import { Component, JSXElement, Show } from "solid-js";
import { Header } from "./header";
import { Sidebar } from "../Sidebar";
import { clanList, route, setRoute } from "../App";
import { activeURI, clanList, route, setRoute } from "../App";
interface LayoutProps {
children: JSXElement;
@@ -18,7 +18,7 @@ export const Layout: Component<LayoutProps> = (props) => {
/>
<div class="drawer-content">
<Show when={route() !== "welcome"}>
<Header />
<Header clan_dir={activeURI} />
</Show>
{props.children}
</div>