Lazy loading for map

This commit is contained in:
Paulo Gustavo Veiga
2022-11-15 22:45:59 -08:00
parent 2d133f33fb
commit a96c9902d6
7 changed files with 51 additions and 62 deletions

View File

@ -32,7 +32,7 @@ const ColorPicker = (props: {
<Box component="div" sx={{ m: 2 }}>
<ReactColorPicker
color={props.colorModel.getValue() || '#fff'}
onChangeComplete={(color) => {
onChangeComplete={(color: { hex: string }) => {
props.colorModel.setValue(color.hex);
props.closeModal();
}}
@ -40,7 +40,7 @@ const ColorPicker = (props: {
width={216}
circleSpacing={9}
circleSize={18}
></ReactColorPicker>
/>
</Box>
);
};