Removed mantine libraries; Removed mandatory authentication
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
import { useMantineColorScheme } from '@mantine/core'
|
||||
import useSWR from 'swr'
|
||||
import { fetcher } from '../../../http/axiosInstance'
|
||||
import { BASE_URL } from '../../../constants'
|
||||
import { Accordion, AccordionHeader, AccordionItem, AccordionPanel, ColorSwatch, Text } from '@fluentui/react-components'
|
||||
import { useAppStore } from '../../../store/app'
|
||||
|
||||
const MapLegend = ({
|
||||
selectedDistrict,
|
||||
@ -11,7 +11,7 @@ const MapLegend = ({
|
||||
selectedDistrict: number | null,
|
||||
selectedYear: number | null,
|
||||
}) => {
|
||||
const { colorScheme } = useMantineColorScheme()
|
||||
const { colorScheme } = useAppStore()
|
||||
|
||||
const { data: existingObjectsList } = useSWR(
|
||||
selectedYear && selectedDistrict ? `/general/objects/list?year=${selectedYear}&city_id=${selectedDistrict}&planning=0` : null,
|
||||
|
Reference in New Issue
Block a user