Skip to content

Commit

Permalink
use named export
Browse files Browse the repository at this point in the history
  • Loading branch information
barbalex committed Oct 28, 2024
1 parent 14c3a2a commit 54a87e3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { exportModule } from '../../../../modules/export.js'
import { StoreContext } from '../../../../storeContext.js'
import { DownloadCardButton, StyledProgressText } from '../index.jsx'

const KontrAnzProZaehlEinheit = () => {
export const KontrAnzProZaehlEinheit = observer(() => {
const client = useApolloClient()
const store = useContext(StoreContext)
const { enqueNotification } = store
Expand Down Expand Up @@ -137,11 +137,9 @@ const KontrAnzProZaehlEinheit = () => {
}}
>
Kontrollen: Anzahl pro Zähleinheit
{queryState ? (
{queryState ?
<StyledProgressText>{queryState}</StyledProgressText>
) : null}
: null}
</DownloadCardButton>
)
}

export default observer(KontrAnzProZaehlEinheit)
})
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { exportModule } from '../../../../modules/export.js'
import { StoreContext } from '../../../../storeContext.js'
import { DownloadCardButton, StyledProgressText } from '../index.jsx'

const Kontrollen = () => {
export const KontrFuerWebgisBun = observer(() => {
const client = useApolloClient()
const store = useContext(StoreContext)
const { enqueNotification } = store
Expand Down Expand Up @@ -108,11 +108,9 @@ const Kontrollen = () => {
}}
>
Kontrollen für WebGIS BUN
{queryState ? (
{queryState ?
<StyledProgressText>{queryState}</StyledProgressText>
) : null}
: null}
</DownloadCardButton>
)
}

export default observer(Kontrollen)
})
4 changes: 2 additions & 2 deletions src/components/Projekte/Exporte/Kontrollen/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import {
CardActionIconButton,
} from '../index.jsx'
import { Kontrollen as KontrollenComponent } from './Kontrollen.jsx'
import KontrFuerWebgisBun from './KontrFuerWebgisBun.jsx'
import KontrAnzProZaehlEinheit from './KontrAnzProZaehlEinheit.jsx'
import { KontrFuerWebgisBun } from './KontrFuerWebgisBun.jsx'
import { KontrAnzProZaehlEinheit } from './KontrAnzProZaehlEinheit.jsx'

export const Kontrollen = () => {
const [expanded, setExpanded] = useState(false)
Expand Down

0 comments on commit 54a87e3

Please sign in to comment.