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

This commit is contained in:
psychedelicious 2024-06-06 18:17:49 +10:00
parent f5d879d8e7
commit 3fbe65bbcf

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}>