Skip to content

Commit

Permalink
add copy route hint to about page
Browse files Browse the repository at this point in the history
  • Loading branch information
Marvel-Ib committed Oct 26, 2023
1 parent 70462c0 commit 482b246
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions frontend/app/src/people/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ export interface AboutViewProps {
owner_pubkey?: string;
description?: string;
canEdit?: boolean;
owner_route_hint?: string;
}

export interface BlogViewProps {
Expand Down
4 changes: 2 additions & 2 deletions frontend/app/src/people/widgetViews/AboutView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ const Img = styled.div<ImageProps>`
`;
export const AboutView = observer((props: AboutViewProps) => {
const history = useHistory();
const { price_to_meet, extras, twitter_confirmed, owner_pubkey } = props;
const { price_to_meet, extras, twitter_confirmed, owner_pubkey, owner_route_hint, } = props;
const { twitter, github, coding_languages, tribes, repos, lightning, amboss, email } =
extras || {};

Expand Down Expand Up @@ -264,7 +264,7 @@ export const AboutView = observer((props: AboutViewProps) => {

<Divider />

{owner_pubkey && <QrBar value={owner_pubkey} />}
{owner_pubkey && <QrBar value={`${owner_pubkey}:${owner_route_hint}`} />}

{tag && (
<>
Expand Down

0 comments on commit 482b246

Please sign in to comment.