Skip to content

Commit

Permalink
Merge pull request stakwork#510 from aliraza556/Fix-Page-Redirect-Con…
Browse files Browse the repository at this point in the history
…nect-Card

Fixed: `Connect Card` Modal Behavior on People Page
  • Loading branch information
elraphty authored May 13, 2024
2 parents 1f02d13 + efd75a0 commit 6f7129a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/people/utils/ConnectCard.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from 'react';
import { useHistory } from 'react-router-dom';
import styled from 'styled-components';
import { ConnectCardProps } from 'people/interfaces';
import { Button, Modal, QR } from '../../components/common';
Expand Down Expand Up @@ -92,15 +91,13 @@ export default function ConnectCard(props: ConnectCardProps) {
const qrString = person && person?.owner_pubkey ? makeConnectQR(person?.owner_pubkey) : '';
const ownerPubkey = person && person?.owner_pubkey ? `${person.owner_pubkey}` : '';
const routeHint = person && person?.owner_route_hint ? `:${person.owner_route_hint}` : '';
const history = useHistory();

return (
<div onClick={(e: any) => e.stopPropagation()}>
<Modal
style={props.modalStyle}
overlayClick={() => {
props.dismiss();
history.goBack();
}}
visible={visible}
>
Expand Down

0 comments on commit 6f7129a

Please sign in to comment.