diff --git a/src/views/Modals/Inputs/EditThingState.jsx b/src/views/Modals/Inputs/EditThingState.jsx index d520718..fb90e55 100644 --- a/src/views/Modals/Inputs/EditThingState.jsx +++ b/src/views/Modals/Inputs/EditThingState.jsx @@ -7,9 +7,11 @@ import { Typography, } from '@mui/joy' import { useState } from 'react' -import FadeModal from '../../../components/common/FadeModal' +import { useResponsiveModal } from '../../../hooks/useResponsiveModal' function EditThingStateModal({ isOpen, onClose, onSave, currentThing }) { + const { ResponsiveModal } = useResponsiveModal() + const [state, setState] = useState(currentThing?.state || '') const [errors, setErrors] = useState({}) @@ -38,7 +40,7 @@ function EditThingStateModal({ isOpen, onClose, onSave, currentThing }) { } return ( - + Update state @@ -60,7 +62,7 @@ function EditThingStateModal({ isOpen, onClose, onSave, currentThing }) { {currentThing?.id ? 'Cancel' : 'Close'} - + ) } export default EditThingStateModal