feat: Schließen Button in Kabelüberwachung Modal Einstellungen eingefügt
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user