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 fcab04d commit 95eb84e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 16 deletions.
23 changes: 8 additions & 15 deletions src/components/Projekte/Daten/Tpopfreiwkontr/Form/Besttime.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,11 @@ const BesttimeVal = styled.div`
grid-area: besttimeVal;
`

const Besttime = ({ row }) => {
//console.log('Besttime rendering')

return (
<Container>
<BesttimeLabel>bester Beobachtungs-Zeitpunkt</BesttimeLabel>
<BesttimeVal>
{row?.tpopByTpopId?.popByPopId?.apByApId?.ekfBeobachtungszeitpunkt ??
''}
</BesttimeVal>
</Container>
)
}

export default Besttime
export const Besttime = ({ row }) => (
<Container>
<BesttimeLabel>bester Beobachtungs-Zeitpunkt</BesttimeLabel>
<BesttimeVal>
{row?.tpopByTpopId?.popByPopId?.apByApId?.ekfBeobachtungszeitpunkt ?? ''}
</BesttimeVal>
</Container>
)
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { useQueryClient } from '@tanstack/react-query'
import { StringToCopyOnlyButton } from '../../../../shared/StringToCopyOnlyButton.jsx'
import { Title } from './Title.jsx'
import { Headdata } from './Headdata/index.jsx'
import Besttime from './Besttime.jsx'
import { Besttime } from './Besttime.jsx'
import { DateField } from './Date.jsx'
import Map from './Map.jsx'
import Cover from './Cover.jsx'
Expand Down

0 comments on commit 95eb84e

Please sign in to comment.