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 0d8f7e3 commit 082a293
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions src/components/Projekte/Daten/Projekt/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const fieldTypes = {
name: 'String',
}

const Projekt = () => {
export const Component = observer(() => {
const { projId } = useParams()

const queryClient = useQueryClient()
Expand Down Expand Up @@ -129,6 +129,4 @@ const Projekt = () => {
</Container>
</ErrorBoundary>
)
}

export const Component = observer(Projekt)
})
4 changes: 2 additions & 2 deletions src/components/Projekte/Daten/Qk/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { useParams } from 'react-router-dom'
import { FormTitle } from '../../../shared/FormTitle/index.jsx'
import Qk from './Qk'
import { Choose } from './Choose'
import queryQk from './queryQk'
import { query } from './query.js'
import { ErrorBoundary } from '../../../shared/ErrorBoundary.jsx'
import { Error } from '../../../shared/Error.jsx'
import { Spinner } from '../../../shared/Spinner.jsx'
Expand All @@ -35,7 +35,7 @@ const TabContent = styled.div`
export const Component = () => {
const { apId } = useParams()

const { data, loading, error, refetch } = useQuery(queryQk, {
const { data, loading, error, refetch } = useQuery(query, {
variables: { apId },
fetchPolicy: 'no-cache',
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { gql } from '@apollo/client'

import { qk, apqk } from '../../../shared/fragments.js'

export default gql`
export const query = gql`
query QkQueryForQkTop($apId: UUID!) {
allQks(orderBy: [SORT_ASC, NAME_ASC]) {
totalCount
Expand Down

0 comments on commit 082a293

Please sign in to comment.