From c6c37cbc01fb8db4f6052039f1004e7e005a5e33 Mon Sep 17 00:00:00 2001 From: akanshaaaa19 Date: Fri, 31 May 2024 12:10:59 +0530 Subject: [PATCH 1/2] changed position of translate button --- .../images/icons/LanguageTranslation.svg | 2 +- src/components/floweditor/FlowEditor.tsx | 28 +++++++++++-------- 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/src/assets/images/icons/LanguageTranslation.svg b/src/assets/images/icons/LanguageTranslation.svg index dea08db0f..434f727c8 100644 --- a/src/assets/images/icons/LanguageTranslation.svg +++ b/src/assets/images/icons/LanguageTranslation.svg @@ -1,3 +1,3 @@ - + diff --git a/src/components/floweditor/FlowEditor.tsx b/src/components/floweditor/FlowEditor.tsx index e7fae7436..7e1557459 100644 --- a/src/components/floweditor/FlowEditor.tsx +++ b/src/components/floweditor/FlowEditor.tsx @@ -5,6 +5,7 @@ import { Menu, MenuItem, Typography } from '@mui/material'; import BackIconFlow from 'assets/images/icons/BackIconFlow.svg?react'; import WarningIcon from 'assets/images/icons/Warning.svg?react'; import PreviewIcon from 'assets/images/icons/PreviewIcon.svg?react'; +import TranslateIcon from 'assets/images/icons/LanguageTranslation.svg?react'; import PublishIcon from 'assets/images/icons/PublishIcon.svg?react'; import { Button } from 'components/UI/Form/Button/Button'; import { APP_NAME } from 'config/index'; @@ -55,7 +56,7 @@ export const FlowEditor = () => { setAnchorEl(null); }; - const isTranslationEnabled = getOrganizationServices('autoTranslationEnabled'); + const isTranslationEnabled = !getOrganizationServices('autoTranslationEnabled'); let modal = null; let dialog = null; @@ -401,17 +402,6 @@ export const FlowEditor = () => { > Reset flow count - {isTranslationEnabled && ( - { - setShowTranslateFlowModal(true); - handleClose(); - }} - disableRipple - > - Translate - - )} + {isTranslationEnabled && ( + + )}