From edc3f847c7c3ce36e0747d793356305832553298 Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Tue, 19 Nov 2024 14:50:07 +0100 Subject: [PATCH] UI/layout: clean up imports --- pkgs/webview-ui/app/src/layout/layout.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pkgs/webview-ui/app/src/layout/layout.tsx b/pkgs/webview-ui/app/src/layout/layout.tsx index f5e3c5edb..8fee28058 100644 --- a/pkgs/webview-ui/app/src/layout/layout.tsx +++ b/pkgs/webview-ui/app/src/layout/layout.tsx @@ -1,13 +1,12 @@ import { Component, createEffect, Show } from "solid-js"; import { Header } from "./header"; -import { Sidebar } from "../Sidebar"; -import { Sidebar as SidebarUpdate } from "@/src/components/Sidebar"; +import { Sidebar } from "@/src/components/Sidebar"; import { activeURI, clanList } from "../App"; -import { redirect, RouteSectionProps, useNavigate } from "@solidjs/router"; +import { RouteSectionProps, useNavigate } from "@solidjs/router"; export const Layout: Component = (props) => { const navigate = useNavigate(); - +createEffect(() => { + createEffect(() => { console.log("Layout props", props.location); console.log( "empty ClanList, redirect to welcome page", @@ -44,7 +43,7 @@ export const Layout: Component = (props) => { aria-label="close sidebar" class="drawer-overlay" > - +