From 6d8c774aa783e9b5e0cd164a976ddc855b4e2ef8 Mon Sep 17 00:00:00 2001 From: Steven Tey Date: Fri, 25 Aug 2023 22:02:24 -0500 Subject: [PATCH] added radix popover to node selector as well --- ui/editor/components/color-selector.tsx | 5 +++- ui/editor/components/node-selector.tsx | 31 ++++++++++++++----------- 2 files changed, 21 insertions(+), 15 deletions(-) diff --git a/ui/editor/components/color-selector.tsx b/ui/editor/components/color-selector.tsx index 2ae9cf449..60cafa68a 100644 --- a/ui/editor/components/color-selector.tsx +++ b/ui/editor/components/color-selector.tsx @@ -125,7 +125,10 @@ export const ColorSelector: FC = ({ - +
Color
{TEXT_COLORS.map(({ name, color }, index) => ( + +
+ setIsOpen(!isOpen)} + > + {activeItem?.name} + + - {isOpen && ( -
+ {items.map((item, index) => ( ))} -
- )} -
+
+ + ); };