From 4f1ebe841636c5fc0ee1903e72c8173d7ba7bd63 Mon Sep 17 00:00:00 2001 From: David Farrell <1469333+dnmfarrell@users.noreply.github.com> Date: Wed, 6 Apr 2022 09:12:44 -0400 Subject: [PATCH] interface: remove share profile chat button Removes the "Share private profile?" text and button that appear at the top of the chat window when the ship has not opted in to sharing their profile. fixes urbit/landscape#1195 --- .../views/apps/chat/components/ChatPane.tsx | 6 -- .../apps/chat/components/ShareProfile.tsx | 77 ------------------- 2 files changed, 83 deletions(-) delete mode 100644 pkg/interface/src/views/apps/chat/components/ShareProfile.tsx diff --git a/pkg/interface/src/views/apps/chat/components/ChatPane.tsx b/pkg/interface/src/views/apps/chat/components/ChatPane.tsx index d9aa8373e..3173807e9 100644 --- a/pkg/interface/src/views/apps/chat/components/ChatPane.tsx +++ b/pkg/interface/src/views/apps/chat/components/ChatPane.tsx @@ -8,7 +8,6 @@ import { useFileUpload } from '~/logic/lib/useFileUpload'; import { createStorageKey, storageVersion, clearStorageMigration } from '~/logic/lib/util'; import { useOurContact } from '~/logic/state/contact'; import { useGraphTimesent } from '~/logic/state/graph'; -import ShareProfile from '~/views/apps/chat/components/ShareProfile'; import { Loading } from '~/views/components/Loading'; import SubmitDragger from '~/views/components/SubmitDragger'; import ChatInput from './ChatInput'; @@ -145,11 +144,6 @@ export function ChatPane(props: ChatPaneProps): ReactElement { return ( // @ts-ignore bind typings