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