Skip to content

Commit

Permalink
Merge pull request #158 from ahmed-deriv/ahmed/DAPI-777/fix--register…
Browse files Browse the repository at this point in the history
…-app-link-styling

ahmed/DAPI-777/fix--register-app-link-styling
  • Loading branch information
sandeep-deriv authored Oct 21, 2024
2 parents 155a111 + 0c3adb3 commit 73ac42f
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 13 deletions.
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;
}
}

0 comments on commit 73ac42f

Please sign in to comment.