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 e7dba71 commit b047fc6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 3 additions & 5 deletions src/components/Projekte/Daten/Tpop/History.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useQuery, gql } from '@apollo/client'
import { useParams } from 'react-router-dom'

import { Spinner } from '../../../shared/Spinner.jsx'
import { History } from '../../../shared/History/index.jsx'
import { History as SharedHistory } from '../../../shared/History/index.jsx'
import { appBaseUrl } from '../../../../modules/appBaseUrl.js'

const tpopHistoriesQuery = gql`
Expand Down Expand Up @@ -164,7 +164,7 @@ const Aktuell = styled.span`
background-color: rgb(201, 238, 211);
`

const TpopHistory = () => {
export const History = () => {
const { tpopId } = useParams()

const { error, data, loading } = useQuery(tpopHistoriesQuery, {
Expand Down Expand Up @@ -361,7 +361,7 @@ const TpopHistory = () => {
]

return (
<History
<SharedHistory
key={`${r.id}${r.year}`}
year={r?.year}
dataArray={dataArray}
Expand All @@ -372,5 +372,3 @@ const TpopHistory = () => {
</SimpleBar>
)
}

export default TpopHistory
4 changes: 2 additions & 2 deletions src/components/Projekte/Daten/Tpop/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { StoreContext } from '../../../../storeContext.js'
import { ifIsNumericAsNumber } from '../../../../modules/ifIsNumericAsNumber.js'
import { Ek } from './Ek/index.jsx'
import { Tpop } from './Tpop.jsx'
import TpopHistory from './History.jsx'
import { History } from './History.jsx'
import { Files } from '../../../shared/Files/index.jsx'
import { ErrorBoundary } from '../../../shared/ErrorBoundary.jsx'
import { Error } from '../../../shared/Error.jsx'
Expand Down Expand Up @@ -251,7 +251,7 @@ const TpopForm = () => {
parent="tpop"
loadingParent={loading}
/>
: <TpopHistory />}
: <History />}
</TabContent>
</FieldsContainer>
</Container>
Expand Down

0 comments on commit b047fc6

Please sign in to comment.