diff --git a/pkg/interface/src/views/apps/profile/components/ViewProfile.tsx b/pkg/interface/src/views/apps/profile/components/ViewProfile.tsx
index a84fab799..4875d7da1 100644
--- a/pkg/interface/src/views/apps/profile/components/ViewProfile.tsx
+++ b/pkg/interface/src/views/apps/profile/components/ViewProfile.tsx
@@ -7,6 +7,7 @@ import {
Text,
Row,
Button,
+ Col
} from "@tlon/indigo-react";
import { AsyncButton } from "~/views/components/AsyncButton";
import RichText from "~/views/components/RichText";
@@ -37,16 +38,17 @@ export function ViewProfile(props: any) {
{ship}
-
-
-
+
+
{(contact?.bio ? contact.bio : "")}
-
-
+
+
{ (ship === `~${window.ship}`) ? (
{
public popoverRef: React.Ref;
+ public dropdownRef: React.Ref;
constructor(props) {
super(props);
this.popoverRef = React.createRef();
+ this.dropdownRef = React.createRef();
this.onDocumentClick = this.onDocumentClick.bind(this);
}
@@ -45,9 +47,9 @@ class ProfileOverlay extends PureComponent {
}
onDocumentClick(event) {
- const { popoverRef } = this;
+ const { popoverRef, dropdownRef } = this;
// Do nothing if clicking ref's element or descendent elements
- if (!popoverRef.current || popoverRef.current.contains(event.target)) {
+ if (!popoverRef.current || dropdownRef.current.contains(event.target) || popoverRef.current.contains(event.target)) {
return;
}
@@ -129,13 +131,14 @@ class ProfileOverlay extends PureComponent {
border={1}
borderRadius={2}
borderColor="lightGray"
+ ref={this.dropdownRef}
boxShadow="0px 0px 0px 3px">
history.push('/~profile/' + window.ship)}>
+ onClick={() => history.push('/~profile/~' + window.ship)}>
View Profile
{(!isOwn) && (