Fixed docker deploments, moved files to _folders in dispatch app
This commit is contained in:
@@ -1,10 +1,5 @@
|
||||
import { cn } from "helpers/cn";
|
||||
import {
|
||||
RefAttributes,
|
||||
useCallback,
|
||||
useEffect,
|
||||
useImperativeHandle,
|
||||
} from "react";
|
||||
import { cn } from "_helpers/cn";
|
||||
import { RefAttributes, useCallback, useEffect, useImperativeHandle } from "react";
|
||||
import { createContext, Ref, useContext, useState } from "react";
|
||||
import { Popup, PopupProps, useMap } from "react-leaflet";
|
||||
import { Popup as LPopup } from "leaflet";
|
||||
@@ -113,9 +108,9 @@ export const SmartPopup = (
|
||||
const [showContent, setShowContent] = useState(false);
|
||||
const { smartPopupRef, id, className, wrapperClassName, options } = props;
|
||||
|
||||
const [anchor, setAnchor] = useState<
|
||||
"topleft" | "topright" | "bottomleft" | "bottomright"
|
||||
>("topleft");
|
||||
const [anchor, setAnchor] = useState<"topleft" | "topright" | "bottomleft" | "bottomright">(
|
||||
"topleft",
|
||||
);
|
||||
|
||||
const handleConflict = useCallback(() => {
|
||||
const newAnchor = calculateAnchor(id, "popup", options);
|
||||
@@ -160,9 +155,7 @@ export const SmartPopup = (
|
||||
anchor.includes("top") && "-translate-y-1/2",
|
||||
)}
|
||||
/>
|
||||
<PopupContext.Provider value={{ anchor: anchor }}>
|
||||
{props.children}
|
||||
</PopupContext.Provider>
|
||||
<PopupContext.Provider value={{ anchor: anchor }}>{props.children}</PopupContext.Provider>
|
||||
</div>
|
||||
</Popup>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user