Moved all Recoil atoms to a new 'atoms' directory and selectors to a 'selectors' directory to clarify the project structure and improve maintainability. This change separates concerns by clearly distinguishing between simple state (atoms) and derived state (selectors), facilitating better understanding and scalability of the application's state management.
25 lines
499 B
JavaScript
25 lines
499 B
JavaScript
// store/mapLayersState.js
|
|
import { atom } from "recoil";
|
|
|
|
export const mapLayersState = atom({
|
|
key: "mapLayersState", // Eindeutiger Schlüssel für das Atom
|
|
default: {
|
|
// Standardwerte für jeden Layer
|
|
TALAS: true,
|
|
ECI: true,
|
|
ULAF: true,
|
|
GSMModem: true,
|
|
CiscoRouter: true,
|
|
WAGO: true,
|
|
Siemens: true,
|
|
OTDR: true,
|
|
WDM: true,
|
|
GMA: true,
|
|
Messstellen: true,
|
|
TALASICL: true,
|
|
DAUZ: true,
|
|
"SMS-Funkmodem": true,
|
|
Sonstige: true,
|
|
},
|
|
});
|