From a8cef99aa9e1d97c3f2ad32f7780d7a5a58a9944 Mon Sep 17 00:00:00 2001 From: muhammad-ahmed Date: Fri, 10 Jan 2025 16:05:11 +0800 Subject: [PATCH] ahmed/DAPI-853/feat--add-business-partnet-terms --- i18n/en/code.json | 3 ++ i18n/fr/code.json | 7 +++-- .../components/app-register/app-register.tsx | 29 +++++++++++-------- 3 files changed, 25 insertions(+), 14 deletions(-) diff --git a/i18n/en/code.json b/i18n/en/code.json index de0955e3..284269b9 100644 --- a/i18n/en/code.json +++ b/i18n/en/code.json @@ -1118,5 +1118,8 @@ }, "The server is currently unable to handle the request due to a temporary overload or maintenance of the server. Please try again later.": { "message": "The server is currently unable to handle the request due to a temporary overload or maintenance of the server. Please try again later." + }, + "and General Business Partners": { + "message": "and General Business Partners" } } diff --git a/i18n/fr/code.json b/i18n/fr/code.json index 4e66c8e9..29d01e17 100644 --- a/i18n/fr/code.json +++ b/i18n/fr/code.json @@ -403,10 +403,10 @@ "message": "Vous avez créé le nombre maximum de jetons." }, "By registering your application, you acknowledge that you‘ve read and accepted the Deriv API": { - "message": "En enregistrant votre demande, vous reconnaissez avoir lu et accepté" + "message": "En enregistrant votre demande, vous reconnaissez avoir lu et accepté l'API Deriv" }, "terms and conditions": { - "message": "les conditions générales de l'API de Deriv" + "message": "termes et conditions" }, "Enter your app's name": { "message": "Entrez le nom de votre application" @@ -1118,5 +1118,8 @@ }, "The server is currently unable to handle the request due to a temporary overload or maintenance of the server. Please try again later.": { "message": "Le serveur est actuellement incapable de traiter la requête en raison d'une surcharge temporaire ou d'une maintenance du serveur. Veuillez réessayer plus tard." + }, + "and General Business Partners": { + "message": "et partenaires commerciaux généraux" } } diff --git a/src/features/dashboard/components/app-register/app-register.tsx b/src/features/dashboard/components/app-register/app-register.tsx index f08c8f20..8f695bda 100644 --- a/src/features/dashboard/components/app-register/app-register.tsx +++ b/src/features/dashboard/components/app-register/app-register.tsx @@ -26,7 +26,9 @@ const TermsAndConditions: React.FC = ({ register }) => @@ -73,12 +85,8 @@ const AppRegister: React.FC = () => { const has_error = Object.entries(errors).length !== 0; const { deviceType } = useDeviceType(); const is_desktop = deviceType === 'desktop'; - const { - setAppRegisterModalOpen, - updateCurrentTab, - getApps, - handleCurrentUpdatingItem, - } = useAppManager(); + const { setAppRegisterModalOpen, updateCurrentTab, getApps, handleCurrentUpdatingItem } = + useAppManager(); const { send: registerApp, data, error, clear, is_loading } = useWS('app_register'); const [created_app_data, setCreatedAppData] = useState({}); @@ -118,7 +126,7 @@ const AppRegister: React.FC = () => { if (error) { clear(); } - } + }; return ( <> @@ -149,10 +157,7 @@ const AppRegister: React.FC = () => { - + ); };