From 9e79807e61262a5779e4b64e8d1ca931f12bdc87 Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Fri, 13 Dec 2024 11:47:54 +0100 Subject: [PATCH] UI: sidebar add icons to sections --- .../app/src/components/Sidebar/index.tsx | 13 ++++-- .../app/src/components/icon/index.tsx | 2 +- pkgs/webview-ui/app/src/index.tsx | 41 +++++++++++-------- 3 files changed, 35 insertions(+), 21 deletions(-) diff --git a/pkgs/webview-ui/app/src/components/Sidebar/index.tsx b/pkgs/webview-ui/app/src/components/Sidebar/index.tsx index 900a51d74..8eec3782a 100644 --- a/pkgs/webview-ui/app/src/components/Sidebar/index.tsx +++ b/pkgs/webview-ui/app/src/components/Sidebar/index.tsx @@ -8,9 +8,11 @@ import { SidebarHeader } from "./SidebarHeader"; import { SidebarListItem } from "./SidebarListItem"; import { Typography } from "../Typography"; import "./css/sidebar.css"; +import Icon, { IconVariant } from "../icon"; export const SidebarSection = (props: { title: string; + icon: IconVariant; children: JSX.Element; }) => { const { title, children } = props; @@ -19,7 +21,7 @@ export const SidebarSection = (props: {