WIP: POI->contextmenu ->POI bearbeiten ->Gerät: Dropdown
This commit is contained in:
23
redux/slices/webService/gisStationsStaticDistrictSlice.js
Normal file
23
redux/slices/webService/gisStationsStaticDistrictSlice.js
Normal file
@@ -0,0 +1,23 @@
|
||||
// /redux/slices/webService/gisStationsStaticDistrictSlice.js
|
||||
import { createSlice } from "@reduxjs/toolkit";
|
||||
|
||||
const initialState = [];
|
||||
|
||||
const gisStationsStaticDistrictSlice = createSlice({
|
||||
name: "gisStationsStaticDistrict",
|
||||
initialState,
|
||||
reducers: {
|
||||
setGisStationsStaticDistrict: (state, action) => {
|
||||
return action.payload;
|
||||
},
|
||||
clearGisStationsStaticDistrict: () => {
|
||||
return [];
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
export const { setGisStationsStaticDistrict, clearGisStationsStaticDistrict } = gisStationsStaticDistrictSlice.actions;
|
||||
|
||||
export const selectGisStationsStaticDistrict = (state) => state.gisStationsStaticDistrict;
|
||||
|
||||
export default gisStationsStaticDistrictSlice.reducer;
|
||||
7
redux/slices/webService/gisSystemStaticSlice.js
Normal file
7
redux/slices/webService/gisSystemStaticSlice.js
Normal file
@@ -0,0 +1,7 @@
|
||||
// /redux/slices/webService/gisSystemStaticSlice.js
|
||||
import { atom } from "recoil";
|
||||
|
||||
export const gisSystemStaticState = atom({
|
||||
key: "gisSystemStatic", // Eindeutiger Schlüssel (innerhalb des Projekts)
|
||||
default: [], // Standardwert (Anfangszustand)
|
||||
});
|
||||
Reference in New Issue
Block a user