From d7627c398cb0ff140f5f6294c158e3ff4ad36d6f Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Wed, 2 Aug 2023 21:20:00 -0400 Subject: [PATCH] Add an icon for FIR (#6292) It's not a very _good_ icon, but I prefer the consistency. I'm also going to add tooltips to these. --- playground/src/Editor/Icons.tsx | 17 +++++++++++++++++ playground/src/Editor/SecondarySideBar.tsx | 9 +++++++-- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/playground/src/Editor/Icons.tsx b/playground/src/Editor/Icons.tsx index 13f4188a5c..0e39f4d8d0 100644 --- a/playground/src/Editor/Icons.tsx +++ b/playground/src/Editor/Icons.tsx @@ -107,3 +107,20 @@ export function TokensIcon() { ); } + +export function FormatterIRIcon() { + return ( + + + + ); +} diff --git a/playground/src/Editor/SecondarySideBar.tsx b/playground/src/Editor/SecondarySideBar.tsx index 44177c3ea6..721f6fec25 100644 --- a/playground/src/Editor/SecondarySideBar.tsx +++ b/playground/src/Editor/SecondarySideBar.tsx @@ -1,5 +1,10 @@ import SideBar, { SideBarEntry } from "./SideBar"; -import { FormatIcon, StructureIcon, TokensIcon } from "./Icons"; +import { + FormatIcon, + FormatterIRIcon, + StructureIcon, + TokensIcon, +} from "./Icons"; import { SecondaryTool } from "./SecondaryPanel"; interface RightSideBarProps { @@ -42,7 +47,7 @@ export default function SecondarySideBar({ selected={selected === SecondaryTool.FIR} onClick={() => onSelected(SecondaryTool.FIR)} > - FIR + );