Skip to content

Commit

Permalink
Merge pull request #1495 from zetkin/issue-1490/fix-redirecting
Browse files Browse the repository at this point in the history
issue 1490/fix redirection
  • Loading branch information
kaulfield23 authored Sep 6, 2023
2 parents 28257b9 + 6802ee2 commit c3e3fd6
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/features/events/components/EventPopper/SingleEvent.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { makeStyles } from '@mui/styles';
import NextLink from 'next/link';
import { useMessages } from 'core/i18n';
import { useRouter } from 'next/router';
import {
AccessTime,
ArrowForward,
Expand Down Expand Up @@ -51,7 +50,6 @@ interface SingleEventProps {
}

const SingleEvent: FC<SingleEventProps> = ({ event, onClickAway }) => {
const router = useRouter();
const { showConfirmDialog } = useContext(ZUIConfirmDialogContext);
const messages = useMessages(messageIds);
const classes = useStyles();
Expand Down Expand Up @@ -85,11 +83,6 @@ const SingleEvent: FC<SingleEventProps> = ({ event, onClickAway }) => {
onSubmit: () => {
model.deleteEvent();
onClickAway();
router.push(
`/organize/${event.organization.id}${
event.campaign ? `/projects/${event.campaign.id}` : ''
}`
);
},
title: messages.eventPopper.confirmDelete(),
warningText: messages.eventPopper.deleteWarning(),
Expand Down

0 comments on commit c3e3fd6

Please sign in to comment.