diff --git a/pkgs/webview-ui/app/gtk.webview.js b/pkgs/webview-ui/app/gtk.webview.js index aa99534ef..e75eecc12 100644 --- a/pkgs/webview-ui/app/gtk.webview.js +++ b/pkgs/webview-ui/app/gtk.webview.js @@ -52,7 +52,7 @@ fs.readFile(manifestPath, { encoding: "utf8" }, (err, data) => { console.log(`Rewriting CSS url(): ${asset.url} to ${res}`); return res; }, - }) + }), ) .process(css, { from: `dist/${cssEntry}`, diff --git a/pkgs/webview-ui/app/src/components/Sidebar/SidebarHeader.tsx b/pkgs/webview-ui/app/src/components/Sidebar/SidebarHeader.tsx index ecac8e546..0c4d5457b 100644 --- a/pkgs/webview-ui/app/src/components/Sidebar/SidebarHeader.tsx +++ b/pkgs/webview-ui/app/src/components/Sidebar/SidebarHeader.tsx @@ -1,27 +1,20 @@ -import { createSignal, Show } from "solid-js"; - +import { createSignal } from "solid-js"; import { Typography } from "@/src/components/Typography"; import { SidebarFlyout } from "./SidebarFlyout"; +import "./css/sidebar.css"; -interface SidebarHeader { +interface SidebarProps { clanName: string; + showFlyout?: () => boolean; } -export const SidebarHeader = (props: SidebarHeader) => { - const { clanName } = props; - - const [showFlyout, toggleFlyout] = createSignal(false); - - function handleClick() { - toggleFlyout(!showFlyout()); - } - - const renderClanProfile = () => ( +const ClanProfile = (props: SidebarProps) => { + return (
); +}; - const renderClanTitle = () => ( +const ClanTitle = (props: SidebarProps) => { + return (