From 04ecb8ff29e7d899a435aa91dd6a1d9f73e7b090 Mon Sep 17 00:00:00 2001 From: Matilde Park Date: Mon, 1 Feb 2021 17:01:21 -0500 Subject: [PATCH] chat: add stubbed share banner --- .../src/views/apps/chat/ChatResource.tsx | 2 ++ .../apps/chat/components/ShareProfile.js | 30 +++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 pkg/interface/src/views/apps/chat/components/ShareProfile.js diff --git a/pkg/interface/src/views/apps/chat/ChatResource.tsx b/pkg/interface/src/views/apps/chat/ChatResource.tsx index e9c8e46fd..56bc414b6 100644 --- a/pkg/interface/src/views/apps/chat/ChatResource.tsx +++ b/pkg/interface/src/views/apps/chat/ChatResource.tsx @@ -9,6 +9,7 @@ import { useFileDrag } from '~/logic/lib/useDrag'; import ChatWindow from './components/ChatWindow'; import ChatInput from './components/ChatInput'; import GlobalApi from '~/logic/api/global'; +import { ShareProfile } from '~/views/apps/chat/components/ShareProfile'; import SubmitDragger from '~/views/components/SubmitDragger'; import { useLocalStorageState } from '~/logic/lib/useLocalStorageState'; import { Loading } from '~/views/components/Loading'; @@ -85,6 +86,7 @@ export function ChatResource(props: ChatResourceProps) { return ( + {dragging && } { + const image = (props?.our?.avatar) + ? + : + + ; + + return ( + + + {image} + Share private profile? + + + Share + + + ); +};