fixed border mission marker; changed type of mapStore for State management in marker

This commit is contained in:
PxlLoewe
2025-04-16 21:31:08 -07:00
parent 9cbb5fcec9
commit 6a827b4127
11 changed files with 140 additions and 117 deletions

View File

@@ -10,9 +10,15 @@ interface MapStore {
center: L.LatLngExpression;
zoom: number;
};
openMissionMarker: string[];
openMissionMarker: {
id: string;
tab: "home" | "";
}[];
setOpenMissionMarker: (mission: { open: string[]; close: string[] }) => void;
openAircraftMarker: string[];
openAircraftMarker: {
id: string;
tab: "home" | "fms" | "aircraft" | "mission" | "chat";
}[];
setOpenAircraftMarker: (mission: { open: string[]; close: string[] }) => void;
searchElements: {
id: number;

View File

@@ -18,9 +18,9 @@ export const useMissionsStore = create<MissionStore>((set) => ({
addressZip: "10178",
missionAdditionalInfo: "Additional info",
missionCategory: "AB_Atmung",
missionKeyword: "Zunehmende Atemnot",
missionKeyword: "Zunehmende Beschwerden",
missionSummary: "AB1_0",
missionPatientInfo: "M/10",
missionSummary: "Summary",
},
],
setMissions: (missions) => set({ missions }),