updated ui
This commit is contained in:
@@ -135,7 +135,11 @@ const DisplayZone: React.FC<DisplayZoneProps> = ({
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="zone-wrapper">
|
<div
|
||||||
|
className={`zone-wrapper ${
|
||||||
|
selectedZone.activeSides.includes("bottom") && "bottom"
|
||||||
|
}`}
|
||||||
|
>
|
||||||
{/* Left Arrow */}
|
{/* Left Arrow */}
|
||||||
{showLeftArrow && (
|
{showLeftArrow && (
|
||||||
<button className="arrow left-arrow" onClick={handleScrollLeft}>
|
<button className="arrow left-arrow" onClick={handleScrollLeft}>
|
||||||
@@ -144,7 +148,12 @@ const DisplayZone: React.FC<DisplayZoneProps> = ({
|
|||||||
)}
|
)}
|
||||||
|
|
||||||
{/* Zones Wrapper */}
|
{/* Zones Wrapper */}
|
||||||
<div ref={containerRef} className="zones-wrapper">
|
<div
|
||||||
|
ref={containerRef}
|
||||||
|
className={`zones-wrapper ${
|
||||||
|
selectedZone.activeSides.includes("bottom") && "bottom"
|
||||||
|
}`}
|
||||||
|
>
|
||||||
{Object.keys(zonesData).map((zoneName, index) => (
|
{Object.keys(zonesData).map((zoneName, index) => (
|
||||||
<div
|
<div
|
||||||
key={index}
|
key={index}
|
||||||
|
|||||||
@@ -154,22 +154,22 @@ const RealTimeVisulization: React.FC = () => {
|
|||||||
|
|
||||||
useEffect(() => {}, [zonesData]);
|
useEffect(() => {}, [zonesData]);
|
||||||
|
|
||||||
// useEffect(() => {
|
useEffect(() => {
|
||||||
// setZonesData((prev) => {
|
setZonesData((prev) => {
|
||||||
// if (!selectedZone) return prev;
|
if (!selectedZone) return prev;
|
||||||
|
|
||||||
// return {
|
return {
|
||||||
// ...prev,
|
...prev,
|
||||||
// [selectedZone.zoneName]: {
|
[selectedZone.zoneName]: {
|
||||||
// ...prev[selectedZone.zoneName], // Keep existing properties
|
...prev[selectedZone.zoneName], // Keep existing properties
|
||||||
// activeSides: selectedZone.activeSides || [],
|
activeSides: selectedZone.activeSides || [],
|
||||||
// panelOrder: selectedZone.panelOrder || [],
|
panelOrder: selectedZone.panelOrder || [],
|
||||||
// lockedPanels: selectedZone.lockedPanels || [],
|
lockedPanels: selectedZone.lockedPanels || [],
|
||||||
// widgets: selectedZone.widgets || [],
|
widgets: selectedZone.widgets || [],
|
||||||
// },
|
},
|
||||||
// };
|
};
|
||||||
// });
|
});
|
||||||
// }, [selectedZone]);
|
}, [selectedZone]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
|
|||||||
Reference in New Issue
Block a user