code fixes and adding modal
This commit is contained in:
@@ -1,15 +1,17 @@
|
||||
import { createContext, useContext } from "react";
|
||||
import type { SightingWidgetType } from "../types/types";
|
||||
import type { SightingType, SightingWidgetType } from "../types/types";
|
||||
|
||||
type SightingFeedContextType = {
|
||||
sightings: (SightingWidgetType | null | undefined)[];
|
||||
selectedRef: number | null;
|
||||
setSelectedRef: (ref: number | null) => void;
|
||||
effectiveSelected: SightingWidgetType | null;
|
||||
// effectiveSelected: SightingWidgetType | null;
|
||||
mostRecent: SightingWidgetType | null;
|
||||
side: string;
|
||||
isPending: boolean;
|
||||
noSighting: boolean;
|
||||
selectedSighting: SightingType | null;
|
||||
setSelectedSighting: (sighting: SightingType | null) => void;
|
||||
setSightingModalOpen: (isSightingModalOpen: boolean) => void;
|
||||
isSightingModalOpen: boolean;
|
||||
};
|
||||
|
||||
export const SightingFeedContext = createContext<
|
||||
|
||||
Reference in New Issue
Block a user