Files copy and paste from store atoms and selector to redux slices folder
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// /hooks/useCreateAndSetDevices.js
|
||||
import { useEffect } from "react";
|
||||
import { useRecoilState } from "recoil";
|
||||
import { polylineEventsDisabledState } from "../store/atoms/polylineEventsDisabledState";
|
||||
import { polylineEventsDisabledState } from "../redux/slices/polylineEventsDisabledState";
|
||||
import { createAndSetDevices } from "../utils/createAndSetDevices";
|
||||
|
||||
const useCreateAndSetDevices = (systemId, setMarkersFunction, GisSystemStatic, priorityConfig) => {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import { useState, useEffect } from "react";
|
||||
import usePoiTypData from "./usePoiTypData";
|
||||
import { useRecoilValue } from "recoil";
|
||||
import { poiLayerVisibleState } from "../store/atoms/poiLayerVisibleState";
|
||||
import { poiLayerVisibleState } from "../redux/slices/poiLayerVisible";
|
||||
|
||||
export const useMapComponentState = () => {
|
||||
const { poiTypData, isPoiTypLoaded } = usePoiTypData("/api/talas_v5_DB/poiTyp/readPoiTyp");
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// hooks/useMarkerLayers.js
|
||||
import { useEffect } from "react";
|
||||
import { useRecoilValue } from "recoil";
|
||||
import { mapLayersState } from "../store/atoms/mapLayersState";
|
||||
import { mapLayersState } from "../redux/slices/mapLayersState";
|
||||
|
||||
const useMarkerLayers = (map, markers, layerType) => {
|
||||
const mapLayersVisibility = useRecoilValue(mapLayersState);
|
||||
|
||||
Reference in New Issue
Block a user