Skip to content

Commit

Permalink
import using complete path
Browse files Browse the repository at this point in the history
  • Loading branch information
barbalex committed May 14, 2024
1 parent 61ef412 commit 979261b
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 33 deletions.
40 changes: 20 additions & 20 deletions src/components/Projekte/Karte/ClickListener.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import { useParams } from 'react-router-dom'
import axios from 'redaxios'

import storeContext from '../../../storeContext.js'
import Popup from './layers/Popup'
import xmlToLayersData from '../../../modules/xmlToLayersData'
import Popup from './layers/Popup.jsx'
import xmlToLayersData from '../../../modules/xmlToLayersData.js'

const ClickListener = () => {
const { apId } = useParams()
Expand Down Expand Up @@ -160,24 +160,24 @@ const ClickListener = () => {
zoom > 19
? 1
: zoom === 19
? 2
: zoom === 18
? 3
: zoom === 17
? 6
: zoom === 16
? 12
: zoom === 15
? 20
: zoom === 14
? 50
: zoom > 12
? 100
: zoom > 10
? 300
: zoom > 8
? 800
: 1200
? 2
: zoom === 18
? 3
: zoom === 17
? 6
: zoom === 16
? 12
: zoom === 15
? 20
: zoom === 14
? 50
: zoom > 12
? 100
: zoom > 10
? 300
: zoom > 8
? 800
: 1200
try {
const coordinates = [lng, lat]
const options = { steps: 8, units: 'meters' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ import { useParams } from 'react-router-dom'

import Checkbox from '../../shared/Checkbox.jsx'
import Error from '../../../../../shared/Error.jsx'
import getBounds from '../../../../../../modules/getBounds'
import getBounds from '../../../../../../modules/getBounds.js'
import storeContext from '../../../../../../storeContext.js'
import query from './query.js'
import PopIcon from './PopIcon'
import TpopIcon from './TpopIcon'
import PopIcon from './PopIcon.jsx'
import TpopIcon from './TpopIcon.jsx'

const PauseCircleOutlineIcon = styled(MdPauseCircleOutline)`
font-size: 1.5rem;
Expand Down Expand Up @@ -125,7 +125,7 @@ const LayerComponent = ({ apfloraLayer }) => {
setBounds,
} = store
const tree = store.tree
const { beobGqlFilter, setMapFilter, incrementMapFilterResetter } = tree
const { beobGqlFilter } = tree
const activeApfloraLayers = getSnapshot(activeApfloraLayersRaw)

const layer = apfloraLayer.value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { observer } from 'mobx-react-lite'
import styled from '@emotion/styled'

import storeContext from '../../../../../storeContext.js'
import Layer from './Layer'
import ShowForMultipleAps from './ShowForMultipleAps'
import KtZhFilter from './KtZhFilter'
import Layer from './Layer/index.jsx'
import ShowForMultipleAps from './ShowForMultipleAps.jsx'
import KtZhFilter from './KtZhFilter/index.jsx'

const CardContent = styled.div`
color: rgb(48, 48, 48);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { useContext, useCallback } from 'react'
import styled from '@emotion/styled'
import { observer } from 'mobx-react-lite'

import Radio from '../shared/Radio'
import Radio from '../shared/Radio.jsx'
import storeContext from '../../../../../storeContext.js'

const LayerDiv = styled.div`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import styled from '@emotion/styled'

import BaseLayer from './BaseLayer'
import BaseLayer from './BaseLayer.jsx'

const CardContent = styled.div`
color: rgb(48, 48, 48);
Expand Down
2 changes: 1 addition & 1 deletion src/components/Projekte/Karte/LayersControl/Overlays.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { arrayMoveImmutable } from 'array-move'
import { observer } from 'mobx-react-lite'
import { getSnapshot } from 'mobx-state-tree'
import { useParams } from 'react-router-dom'
import { layerLegends } from './layerLegends'
import { layerLegends } from './layerLegends.js'
import findIndex from 'lodash/findIndex'

import Checkbox from './shared/Checkbox.jsx'
Expand Down
6 changes: 3 additions & 3 deletions src/components/Projekte/Karte/LayersControl/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import styled from '@emotion/styled'
import { MdExpandMore, MdExpandLess } from 'react-icons/md'
import { observer } from 'mobx-react-lite'

import Overlays from './Overlays'
import ApfloraLayers from './ApfloraLayers'
import BaseLayers from './BaseLayers'
import Overlays from './Overlays.jsx'
import ApfloraLayers from './ApfloraLayers/index.jsx'
import BaseLayers from './BaseLayers/index.jsx'
import storeContext from '../../../../storeContext.js'

const ExpandMoreIcon = styled(MdExpandMore)`
Expand Down

0 comments on commit 979261b

Please sign in to comment.