@@ -214,7 +246,12 @@ export function RackPlanner() {
style={{ background: '#0f1117' }}
>
{racks.map((rack) => (
-
+
))}
diff --git a/client/src/components/rack/RackSlot.tsx b/client/src/components/rack/RackSlot.tsx
index 2dd15b8..afcdf37 100644
--- a/client/src/components/rack/RackSlot.tsx
+++ b/client/src/components/rack/RackSlot.tsx
@@ -1,5 +1,4 @@
import { useState } from 'react';
-import { useDroppable } from '@dnd-kit/core';
import { Plus } from 'lucide-react';
import { U_HEIGHT_PX } from '../../lib/constants';
import { cn } from '../../lib/utils';
@@ -8,20 +7,19 @@ import { AddModuleModal } from '../modals/AddModuleModal';
interface RackSlotProps {
rackId: string;
uPosition: number;
+ /** Passed from RackPlanner via RackColumn — true when a drag is hovering this slot */
+ isOver?: boolean;
}
-export function RackSlot({ rackId, uPosition }: RackSlotProps) {
+export function RackSlot({ rackId, uPosition, isOver = false }: RackSlotProps) {
const [addModuleOpen, setAddModuleOpen] = useState(false);
- const { setNodeRef, isOver } = useDroppable({
- id: `slot-${rackId}-${uPosition}`,
- data: { dropType: 'slot', rackId, uPosition },
- });
-
return (
<>