mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
removed logging
This commit is contained in:
parent
96193ab8c2
commit
16959f1519
@ -30,7 +30,6 @@ export const Layer = (props: LayerProps) => {
|
|||||||
const resetItems = useResetItems();
|
const resetItems = useResetItems();
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
console.log("props.data changed");
|
|
||||||
|
|
||||||
resetItems(props);
|
resetItems(props);
|
||||||
props.data.map(item => {
|
props.data.map(item => {
|
||||||
@ -38,16 +37,12 @@ export const Layer = (props: LayerProps) => {
|
|||||||
addItem(item);
|
addItem(item);
|
||||||
})
|
})
|
||||||
addLayer(props);
|
addLayer(props);
|
||||||
console.table(items)
|
|
||||||
}, [props.data])
|
}, [props.data])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{items.filter(item => item.layer?.name === props.name)?.map((place: Item) => {
|
{items.filter(item => item.layer?.name === props.name)?.map((place: Item) => {
|
||||||
console.log(`layer ${props.name} rendering ....`);
|
|
||||||
|
|
||||||
const tags = getTags(place);
|
const tags = getTags(place);
|
||||||
let color1 = "#666";
|
let color1 = "#666";
|
||||||
let color2 = "RGBA(35, 31, 32, 0.2)";
|
let color2 = "RGBA(35, 31, 32, 0.2)";
|
||||||
|
|||||||
@ -6,7 +6,6 @@ import { useLayers } from '../hooks/useLayers'
|
|||||||
export default function AddButton({setSelectMode} : {setSelectMode: React.Dispatch<React.SetStateAction<any>>}) {
|
export default function AddButton({setSelectMode} : {setSelectMode: React.Dispatch<React.SetStateAction<any>>}) {
|
||||||
|
|
||||||
const layers = useLayers();
|
const layers = useLayers();
|
||||||
console.log("Layers: " +layers);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="dropdown dropdown-top dropdown-end dropdown-hover z-500 absolute right-5 bottom-5" >
|
<div className="dropdown dropdown-top dropdown-end dropdown-hover z-500 absolute right-5 bottom-5" >
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user