- refactored state for sessionlist, and session active and pause states
This commit is contained in:
@@ -1,15 +1,7 @@
|
||||
import { createContext, useContext, type ActionDispatch, type SetStateAction } from "react";
|
||||
import type { DedupedSightings, NPEDACTION, NPEDSTATE, ReducedSightingType } from "../types/types";
|
||||
import { createContext, useContext, type ActionDispatch } from "react";
|
||||
import type { NPEDACTION, NPEDSTATE } from "../types/types";
|
||||
|
||||
type IntegrationsValue = {
|
||||
sessionStarted: boolean;
|
||||
sessionPaused: boolean;
|
||||
setSessionPaused: React.Dispatch<SetStateAction<boolean>>;
|
||||
setSessionStarted: React.Dispatch<SetStateAction<boolean>>;
|
||||
sessionList: ReducedSightingType[];
|
||||
setSessionList: React.Dispatch<SetStateAction<ReducedSightingType[]>>;
|
||||
savedSightings: DedupedSightings;
|
||||
setSavedSightings: React.Dispatch<SetStateAction<DedupedSightings>>;
|
||||
state: NPEDSTATE;
|
||||
dispatch: ActionDispatch<[action: NPEDACTION]>;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user