Skip to content

Commit b647131

Browse files
Remove unused ref in `EventDetailsModal
1 parent c183aff commit b647131

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/components/events/partials/modals/EventDetailsModal.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@ import { useAppDispatch, useAppSelector } from "../../../../store";
55
import { removeNotificationWizardForm } from "../../../../slices/notificationSlice";
66
import { getModalEvent } from "../../../../selectors/eventDetailsSelectors";
77
import { setModalEvent, setShowModal } from "../../../../slices/eventDetailsSlice";
8-
import { Modal, ModalHandle } from "../../../shared/modals/Modal";
8+
import { Modal } from "../../../shared/modals/Modal";
99

1010
/**
1111
* This component renders the modal for displaying event details
1212
*/
1313
const EventDetailsModal = () => {
1414
const { t } = useTranslation();
1515
const dispatch = useAppDispatch();
16-
const modalRef = useRef<ModalHandle>(null);
1716

1817
// tracks, whether the policies are different to the initial value
1918
const [policyChanged, setPolicyChanged] = useState(false);
@@ -45,7 +44,6 @@ const EventDetailsModal = () => {
4544
closeCallback={close}
4645
header={t("EVENTS.EVENTS.DETAILS.HEADER", { name: event.title })}
4746
classId="details-modal"
48-
ref={modalRef}
4947
>
5048
<EventDetails
5149
eventId={event.id}

0 commit comments

Comments
 (0)