Apply patch [skip ci]

This commit is contained in:
open-swe-dev-andrinoid[bot] 2026-01-22 01:32:58 +00:00
parent 0c1242ffeb
commit 34c04a4ef4

View File

@ -10,6 +10,7 @@ export function PopAddLeaseDialog(leases: Lease[], properties: Property[]) {
resolve: (value: boolean) => void; resolve: (value: boolean) => void;
} | null } | null
>(null); >(null);
const [selectedPropertyId, setSelectedPropertyId] = useState("");
function getPropertyInfo(propertyId: string) { function getPropertyInfo(propertyId: string) {
const property = properties.find((p) => p.id === propertyId); const property = properties.find((p) => p.id === propertyId);
@ -56,8 +57,6 @@ export function PopAddLeaseDialog(leases: Lease[], properties: Property[]) {
// Render property selection dialog if no propertyId provided // Render property selection dialog if no propertyId provided
const propertySelectionDialog = popup && !popup.propertyId const propertySelectionDialog = popup && !popup.propertyId
? (() => { ? (() => {
const [selectedPropertyId, setSelectedPropertyId] = useState("");
return ( return (
<div class="fixed inset-0 flex items-center justify-center bg-black bg-opacity-30 z-50"> <div class="fixed inset-0 flex items-center justify-center bg-black bg-opacity-30 z-50">
<div class="bg-white p-6 rounded shadow-lg w-full max-w-md space-y-4"> <div class="bg-white p-6 rounded shadow-lg w-full max-w-md space-y-4">
@ -105,3 +104,4 @@ export function PopAddLeaseDialog(leases: Lease[], properties: Property[]) {
return [popAddLease, popupAddLeaseDialog || propertySelectionDialog] as const; return [popAddLease, popupAddLeaseDialog || propertySelectionDialog] as const;
} }