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';
}, [tool]);
const withBrushColor = useMemo(() => {
return tool === 'brush';
return tool === 'brush' || tool === 'rect';
}, [tool]);
return (
<Flex w="full" gap={2}>