Skip to content

Commit

Permalink
Fix types, again
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo-Duke committed Apr 29, 2024
1 parent cda75c7 commit bc0db61
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions src/components/observation.page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Attachement } from '@/api/settings';
import { ObservationDetails } from '@/api/customObservations';
import { LatLngTuple } from 'leaflet';
import { useTranslations } from 'next-intl';

Expand All @@ -9,17 +9,7 @@ import ButtonClose from './button-close';
import Carousel from './carousel';

type Props = {
content: {
values: any[];
contributedAt: string;
id: string;
label: string;
description: string;
geometry: {
coordinates: number[];
};
attachments: Attachement[];
};
content: ObservationDetails;
};

export default function ObservationDetailsPageUI({ content }: Props) {
Expand All @@ -29,7 +19,7 @@ export default function ObservationDetailsPageUI({ content }: Props) {

return (
<article>
{content?.attachments?.length > 0 && (
{content.attachments && content.attachments?.length > 0 && (
<div className="-m-8 mb-6">
<Carousel
className="w-full"
Expand Down

0 comments on commit bc0db61

Please sign in to comment.