feat: Schließen Button in Kabelüberwachung Modal Einstellungen eingefügt

This commit is contained in:
ISA
2025-05-07 09:47:57 +02:00
parent 63381a1e55
commit e811cf24d5
5 changed files with 26 additions and 6 deletions

View File

@@ -13,9 +13,10 @@ declare global {
interface Props {
slot: number;
onClose?: () => void;
}
export default function Knotenpunkte({ slot }: Props) {
export default function Knotenpunkte({ slot, onClose }: Props) {
const [knotenNamen, setKnotenNamen] = useState<string[]>(Array(10).fill(""));
const [linienNamen, setLinienNamen] = useState<string[]>(Array(10).fill(""));
const [linienLaenge, setLinienLaenge] = useState<number[]>(Array(10).fill(0));
@@ -113,6 +114,14 @@ export default function Knotenpunkte({ slot }: Props) {
)}
</div>
))}
<div className="flex justify-end pt-4">
<button
onClick={onClose}
className="bg-littwin-blue text-white px-4 py-2 rounded "
>
Schließen
</button>
</div>
</div>
);
}