fixed type errors

This commit is contained in:
2025-09-16 14:20:38 +01:00
parent c506c395e6
commit b98e3ed85d
21 changed files with 161 additions and 130 deletions

View File

@@ -1,17 +1,15 @@
import { createContext, useContext } from "react";
import type { SightingType, SightingWidgetType } from "../types/types";
import type { SightingType } from "../types/types";
type SightingFeedContextType = {
sightings: (SightingWidgetType | null | undefined)[];
sightings: (SightingType | null | undefined)[];
selectedRef: number | null;
setSelectedRef: (ref: number | null) => void;
// effectiveSelected: SightingWidgetType | null;
mostRecent: SightingWidgetType | null;
// effectiveSelected: SightingType | null;
mostRecent: SightingType | null;
side: string;
selectedSighting: SightingType | null;
setSelectedSighting: (
sighting: SightingType | SightingWidgetType | null
) => void;
setSelectedSighting: (sighting: SightingType | SightingType | null) => void;
setSightingModalOpen: (isSightingModalOpen: boolean) => void;
isSightingModalOpen: boolean;
};