fix(ui): show color picker when using rect tool

This commit is contained in:
psychedelicious 2024-06-06 18:17:49 +10:00
parent 40cab08133
commit 366c460c1f

View File

@ -17,7 +17,7 @@ export const ControlLayersToolbar = memo(() => {
return tool === 'brush' || tool === 'eraser'; return tool === 'brush' || tool === 'eraser';
}, [tool]); }, [tool]);
const withBrushColor = useMemo(() => { const withBrushColor = useMemo(() => {
return tool === 'brush'; return tool === 'brush' || tool === 'rect';
}, [tool]); }, [tool]);
return ( return (
<Flex w="full" gap={2}> <Flex w="full" gap={2}>