mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
small cleanup
This commit is contained in:
parent
a29bc164ae
commit
226e19e626
@ -1,5 +1,4 @@
|
|||||||
import * as React from 'react'
|
import * as React from 'react'
|
||||||
import * as L from 'leaflet'
|
|
||||||
import { useAddVisibleGroupType, useIsGroupTypeVisible, useToggleVisibleGroupType, useVisibleGroupType } from '../../hooks/useFilter';
|
import { useAddVisibleGroupType, useIsGroupTypeVisible, useToggleVisibleGroupType, useVisibleGroupType } from '../../hooks/useFilter';
|
||||||
import { useEffect } from 'react';
|
import { useEffect } from 'react';
|
||||||
|
|
||||||
|
|||||||
@ -1,8 +1,6 @@
|
|||||||
import * as React from 'react'
|
import * as React from 'react'
|
||||||
import * as L from 'leaflet'
|
|
||||||
import { useLayers } from '../../hooks/useLayers';
|
import { useLayers } from '../../hooks/useLayers';
|
||||||
import { useAddVisibleLayer, useIsLayerVisible, useToggleVisibleLayer } from '../../hooks/useFilter';
|
import { useIsLayerVisible, useToggleVisibleLayer } from '../../hooks/useFilter';
|
||||||
import { useEffect } from 'react';
|
|
||||||
|
|
||||||
export function LayerControl() {
|
export function LayerControl() {
|
||||||
|
|
||||||
@ -14,7 +12,6 @@ export function LayerControl() {
|
|||||||
|
|
||||||
const isLayerVisible = useIsLayerVisible();
|
const isLayerVisible = useIsLayerVisible();
|
||||||
const toggleVisibleLayer = useToggleVisibleLayer();
|
const toggleVisibleLayer = useToggleVisibleLayer();
|
||||||
const addVisibleLayer = useAddVisibleLayer();
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="tw-card tw-bg-base-100 tw-shadow-xl tw-mt-2 tw-w-fit">
|
<div className="tw-card tw-bg-base-100 tw-shadow-xl tw-mt-2 tw-w-fit">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user