fix(frontend): Fix TypeScript inference for AddFloorModal state
This commit is contained in:
parent
da93320ccf
commit
efffe3fb94
1 changed files with 8 additions and 1 deletions
|
|
@ -11,7 +11,14 @@ interface AddFloorModalProps {
|
||||||
|
|
||||||
export function AddFloorModal({ isOpen, onClose, buildingId, onCreated }: AddFloorModalProps) {
|
export function AddFloorModal({ isOpen, onClose, buildingId, onCreated }: AddFloorModalProps) {
|
||||||
const [loading, setLoading] = useState(false);
|
const [loading, setLoading] = useState(false);
|
||||||
const [formData, setFormData] = useState({
|
const [formData, setFormData] = useState<{
|
||||||
|
name: string;
|
||||||
|
number: number;
|
||||||
|
width: number;
|
||||||
|
height: number;
|
||||||
|
ceilingHeight?: number;
|
||||||
|
defaultTiers: number;
|
||||||
|
}>({
|
||||||
name: '',
|
name: '',
|
||||||
number: 1,
|
number: 1,
|
||||||
width: 100,
|
width: 100,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue