Skip to content

Commit

Permalink
chore: add onClose to viewEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
eirikhaugstulen committed Nov 30, 2023
1 parent 4e32e94 commit 59d03b3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ class ViewEventNewRelationshipWrapperPlain extends React.Component<Props, State>
{/* $FlowFixMe[cannot-spread-inexact] automated comment */}
<NewRelationship
header={i18n.t('New event relationship')}
onCancel={onCancel}
{...passOnProps}
/>
</Paper>
Expand All @@ -110,7 +111,7 @@ class ViewEventNewRelationshipWrapperPlain extends React.Component<Props, State>
text={i18n.t('Leaving this page will discard any selections you made for a new relationship')}
destructiveText={i18n.t('Yes, discard changes')}
cancelText={i18n.t('No, cancel')}
onDestroy={this.props.onCancel}
onDestroy={onCancel}
open={!!this.state.discardDialogOpen}
onCancel={this.handleCancelDiscard}
/>
Expand Down

0 comments on commit 59d03b3

Please sign in to comment.