Skip to content

Commit 9a1d85f

Browse files
authored
Merge pull request #194 from ahmed-deriv/ahmed/DAPI-853/feat--add-business-partner-terms
ahmed/DAPI-853/feat--add-business-partner-terms
2 parents 5a8a3df + 38b5545 commit 9a1d85f

File tree

3 files changed

+25
-14
lines changed

3 files changed

+25
-14
lines changed

i18n/en/code.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,6 +1119,9 @@
11191119
"The server is currently unable to handle the request due to a temporary overload or maintenance of the server. Please try again later.": {
11201120
"message": "The server is currently unable to handle the request due to a temporary overload or maintenance of the server. Please try again later."
11211121
},
1122+
"and General Business Partners": {
1123+
"message": "and General Business Partners"
1124+
},
11221125
"Copied": {
11231126
"message": "Copied"
11241127
}

i18n/fr/code.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,10 +403,10 @@
403403
"message": "Vous avez créé le nombre maximum de jetons."
404404
},
405405
"By registering your application, you acknowledge that you‘ve read and accepted the Deriv API": {
406-
"message": "En enregistrant votre demande, vous reconnaissez avoir lu et accepté"
406+
"message": "En enregistrant votre demande, vous reconnaissez avoir lu et accepté l'API Deriv"
407407
},
408408
"terms and conditions": {
409-
"message": "les conditions générales de l'API de Deriv"
409+
"message": "termes et conditions"
410410
},
411411
"Enter your app's name": {
412412
"message": "Entrez le nom de votre application"
@@ -1119,6 +1119,9 @@
11191119
"The server is currently unable to handle the request due to a temporary overload or maintenance of the server. Please try again later.": {
11201120
"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."
11211121
},
1122+
"and General Business Partners": {
1123+
"message": "et partenaires commerciaux généraux"
1124+
},
11221125
"Copied": {
11231126
"message": "Copié"
11241127
}

src/features/dashboard/components/app-register/app-register.tsx

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ const TermsAndConditions: React.FC<TTermsAndConditionsProps> = ({ register }) =>
2626
<CustomCheckbox id='tnc_approval' name='tnc_approval' register={register}>
2727
<label htmlFor='tnc_approval' className='app-register-container__tnc__label'>
2828
<Text>
29-
{translate({ message: `By registering your application, you acknowledge that you‘ve read and accepted the Deriv API` })} {' '}
29+
{translate({
30+
message: `By registering your application, you acknowledge that you‘ve read and accepted the Deriv API`,
31+
})}{' '}
3032
<Link
3133
href='https://deriv.com/tnc/business-partners-api-user.pdf'
3234
target='_blank'
@@ -35,6 +37,16 @@ const TermsAndConditions: React.FC<TTermsAndConditionsProps> = ({ register }) =>
3537
>
3638
<Translate>terms and conditions</Translate>
3739
</Link>
40+
{' '}
41+
{translate({ message: 'and General Business Partners' })}{' '}
42+
<Link
43+
href='https://docs.deriv.com/tnc/business-partners-general-terms.pdf'
44+
target='_blank'
45+
rel='noreferrer'
46+
className='app-register-container__tnc__link'
47+
>
48+
<Translate>terms and conditions</Translate>
49+
</Link>
3850
</Text>
3951
</label>
4052
</CustomCheckbox>
@@ -73,12 +85,8 @@ const AppRegister: React.FC = () => {
7385
const has_error = Object.entries(errors).length !== 0;
7486
const { deviceType } = useDeviceType();
7587
const is_desktop = deviceType === 'desktop';
76-
const {
77-
setAppRegisterModalOpen,
78-
updateCurrentTab,
79-
getApps,
80-
handleCurrentUpdatingItem,
81-
} = useAppManager();
88+
const { setAppRegisterModalOpen, updateCurrentTab, getApps, handleCurrentUpdatingItem } =
89+
useAppManager();
8290
const { send: registerApp, data, error, clear, is_loading } = useWS('app_register');
8391
const [created_app_data, setCreatedAppData] = useState({});
8492

@@ -118,7 +126,7 @@ const AppRegister: React.FC = () => {
118126
if (error) {
119127
clear();
120128
}
121-
}
129+
};
122130

123131
return (
124132
<>
@@ -149,10 +157,7 @@ const AppRegister: React.FC = () => {
149157
<TermsAndConditions register={register('tnc_approval')} />
150158
</div>
151159
</form>
152-
<AppRegisterSuccessModal
153-
onCancel={handleConfigureLater}
154-
onConfigure={handleAppConfigure}
155-
/>
160+
<AppRegisterSuccessModal onCancel={handleConfigureLater} onConfigure={handleAppConfigure} />
156161
</>
157162
);
158163
};

0 commit comments

Comments
 (0)