Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@ fieldset .customTextInput:last-child {
@media screen and (min-width: 992px) {
font-size: rem(1.4);
}

a:hover {
color: var(--component-textIcon-normal-prominent);
}
}

.buttons {
Expand Down
16 changes: 7 additions & 9 deletions src/features/dashboard/components/app-form/app-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import useAppManager from '@site/src/hooks/useAppManager';
import { appRegisterSchema, appEditSchema, IRegisterAppForm } from '../../types';
import RestrictionsAppname from '../restrictions-appname';
import styles from './app-form.module.scss';
import { Link } from '@deriv-com/quill-ui';


type TAppFormProps = {
Expand Down Expand Up @@ -175,9 +176,8 @@ const AppForm = ({
)}
<div>
<div
className={`${styles.helperMargin} ${styles.customTextInput} ${
error_border_active ? styles.errorAppname : ''
}`}
className={`${styles.helperMargin} ${styles.customTextInput} ${error_border_active ? styles.errorAppname : ''
}`}
id='custom-text-input'
onChange={(e) => {
setInputValue((e.target as HTMLInputElement).value);
Expand Down Expand Up @@ -407,17 +407,15 @@ const AppForm = ({
</div>
<div className={styles.termsOfConditionRegister}>
<span>
{translate({ message: `By registering your application, you acknowledge that you‘ve read and accepted the Deriv API`})} {' '}
{translate({ message: `By registering your application, you acknowledge that you‘ve read and accepted the Deriv API` })} {' '}
</span>
<a
<Link
href='https://deriv.com/tnc/business-partners-api-user.pdf'
target='_blank'
rel='noreferrer'
>
<span>
<Translate>terms and conditions</Translate>
</span>
</a>
<Translate>terms and conditions</Translate>
</Link>
</div>
{renderButtons && <div className={styles.submit_container}>{renderButtons()}</div>}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@
top: -4px;
}
}

&__link:hover {
color: var(--component-textIcon-normal-prominent);
}
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import Translate, { translate } from '@docusaurus/Translate';
import { Button, Text } from '@deriv-com/quill-ui';
import { Button, Link, Text } from '@deriv-com/quill-ui';
import { useForm } from 'react-hook-form';
import { yupResolver } from '@hookform/resolvers/yup';
import CustomCheckbox from '@site/src/components/CustomCheckbox';
Expand All @@ -22,13 +22,14 @@ const TermsAndConditions: React.FC<TTermsAndConditionsProps> = ({ register }) =>
<label htmlFor='tnc_approval' className='app-register-container__tnc__label'>
<Text>
{translate({ message: `By registering your application, you acknowledge that you‘ve read and accepted the Deriv API`})} {' '}
<a
<Link
href='https://deriv.com/tnc/business-partners-api-user.pdf'
target='_blank'
rel='noreferrer'
className='app-register-container__tnc__link'
>
<span><Translate>terms and conditions</Translate></span>
</a>
<Translate>terms and conditions</Translate>
</Link>
</Text>
</label>
</CustomCheckbox>
Expand Down
4 changes: 4 additions & 0 deletions src/features/dashboard/manage-dashboard/manage-dashboard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@

.breadcrumbs-wrapper {
padding: 1rem 0;

a, a:active, a:visited {
text-decoration: none;
}
}
Loading