From ab1738172c9b977d62653b6a63a5bbe9b9bba7a6 Mon Sep 17 00:00:00 2001 From: Timofey Boyko Date: Tue, 14 Nov 2023 14:05:21 +0300 Subject: [PATCH] Client:OAuth2:PreviewDialog: add 'Ok' button --- .../OAuth/sub-components/PreviewDialog.tsx | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/packages/client/src/pages/PortalSettings/categories/developer-tools/OAuth/sub-components/PreviewDialog.tsx b/packages/client/src/pages/PortalSettings/categories/developer-tools/OAuth/sub-components/PreviewDialog.tsx index 52560b3e7d..5e7f972885 100644 --- a/packages/client/src/pages/PortalSettings/categories/developer-tools/OAuth/sub-components/PreviewDialog.tsx +++ b/packages/client/src/pages/PortalSettings/categories/developer-tools/OAuth/sub-components/PreviewDialog.tsx @@ -18,6 +18,7 @@ import OnlyofficeDark from "PUBLIC_DIR/images/onlyoffice.dark.react.svg"; //@ts-ignore import { OAuthStoreProps } from "SRC_DIR/store/OAuthStore"; +import Button from "@docspace/components/button"; const StyledContainer = styled.div` width: 100%; @@ -157,7 +158,7 @@ const PreviewDialog = ({ client, theme, }: PreviewDialogProps) => { - const { t } = useTranslation(["OAuth"]); + const { t } = useTranslation(["OAuth", "Common"]); const onClose = () => setPreviewDialogVisible?.(false); @@ -188,7 +189,12 @@ const PreviewDialog = ({ `; return ( - + Auth button @@ -260,6 +266,15 @@ const PreviewDialog = ({ + +