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 95da694 commit 811551e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { gql } from '@apollo/client'

import { tpopkontrzaehl } from '../../../shared/fragments.js'

export default gql`
export const createTpopkontrzaehl = gql`
mutation createTpopkontrzaehForEkf($tpopkontrId: UUID, $einheit: Int) {
createTpopkontrzaehl(
input: {
Expand Down
12 changes: 6 additions & 6 deletions src/components/Projekte/Daten/Tpopfreiwkontr/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ import IconButton from '@mui/material/IconButton'
import SimpleBar from 'simplebar-react'
import { useLocation, useParams } from 'react-router-dom'

import query from './query.js'
import createTpopkontrzaehl from './createTpopkontrzaehl.js'
import { query } from './query.js'
import { createTpopkontrzaehl } from './createTpopkontrzaehl.js'
import { FormTitle } from '../../../shared/FormTitle/index.jsx'
import { StoreContext } from '../../../../storeContext.js'
import { Error } from '../../../shared/Error.jsx'
import { Spinner } from '../../../shared/Spinner.jsx'
import TpopfreiwkontrForm from './Form.jsx'
import Form from './Form.jsx'

const Container = styled.div`
flex-grow: 0;
Expand All @@ -30,7 +30,7 @@ const Container = styled.div`
page-break-after: always;
}
`
// somehow scrollbars were not shown without explicitely setting height
// somehow scrollbars were not shown without explicitly setting height
const ScrollContainer = styled.div`
height: calc(100dvh - 64px);
overflow-y: auto;
Expand Down Expand Up @@ -163,7 +163,7 @@ export const Component = observer(({ id: idPassed }) => {
/>
)}
{isPrint ?
<TpopfreiwkontrForm
<Form
data={data}
row={row}
apId={apId}
Expand All @@ -176,7 +176,7 @@ export const Component = observer(({ id: idPassed }) => {
height: '100%',
}}
>
<TpopfreiwkontrForm
<Form
data={data}
row={row}
apId={apId}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Projekte/Daten/Tpopfreiwkontr/query.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
tpopkontrzaehlEinheitWerte,
} from '../../../shared/fragments.js'

export default gql`
export const query = gql`
query tpopkontrByIdQueryForEkf($id: UUID!) {
tpopkontrById(id: $id) {
...TpopfreiwkontrFields
Expand Down

0 comments on commit 811551e

Please sign in to comment.