From ddcad444b66a44f3a42d97e9fdc38b95a75979e3 Mon Sep 17 00:00:00 2001 From: Reckless_Satoshi Date: Thu, 17 Nov 2022 09:42:52 -0800 Subject: [PATCH] Add copied feedback to Android pgp export --- .../EncryptedChat/ChatBottom/index.tsx | 57 ++++++++++++------- 1 file changed, 35 insertions(+), 22 deletions(-) diff --git a/frontend/src/components/TradeBox/EncryptedChat/ChatBottom/index.tsx b/frontend/src/components/TradeBox/EncryptedChat/ChatBottom/index.tsx index 3d535c34..7645f742 100644 --- a/frontend/src/components/TradeBox/EncryptedChat/ChatBottom/index.tsx +++ b/frontend/src/components/TradeBox/EncryptedChat/ChatBottom/index.tsx @@ -17,14 +17,6 @@ const ChatBottom: React.FC = ({ orderId, setAudit, audit, createJsonFile const { t } = useTranslation(); const theme = useTheme(); - const onPGPClick: () => void = () => { - if (window.ReactNativeWebView === undefined) { - saveAsJson('complete_log_chat_' + orderId + '.json', createJsonFile()); - } else { - systemClient.copyToClipboard(JSON.stringify(createJsonFile())); - } - }; - return ( <> @@ -43,20 +35,41 @@ const ChatBottom: React.FC = ({ orderId, setAudit, audit, createJsonFile - - - + {window.ReactNativeWebView === undefined ? ( + + + + ) : ( + + + + )} );