Skip to content

Commit

Permalink
fix: side note visibility, side note style
Browse files Browse the repository at this point in the history
  • Loading branch information
heorhi-deriv committed Dec 14, 2022
1 parent 5a12219 commit c158e91
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const CashierOnboardingSideNote = ({ is_crypto }) => {

return (
<div>
<Text className='cashier-onboarding-side-note__text' color='prominent' weight='bold' sixe='xs' as='p'>
<Text className='cashier-onboarding-side-note__text' color='prominent' weight='bold' size='xs' as='p'>
{is_crypto ? (
<Localize i18n_default_text='This is your {{currency_code}} account.' values={{ currency_code }} />
) : (
Expand Down
5 changes: 4 additions & 1 deletion packages/cashier/src/components/side-note/side-note.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
color: var(--text-general);
font-size: var(--text-size-xxs);
line-height: 1.5;
margin: 2.4rem 0;
margin: 1.6rem 0;
width: auto;
text-align: left;

Expand All @@ -32,4 +32,7 @@
margin-top: 1.1rem;
}
}
&__title {
margin-bottom: 0.8rem;
}
}
2 changes: 1 addition & 1 deletion packages/cashier/src/components/side-note/side-note.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const SideNoteTitle = ({ children_length, side_notes_length, title }: TSideNoteT
const length_of_notes = children_length || side_notes_length || 0;

return (
<Text className='side-note__title' weight='bold' as='p'>
<Text className='side-note__title' weight='bold' as='p' size='xs'>
{title ||
(length_of_notes > 1 ? <Localize i18n_default_text='Notes' /> : <Localize i18n_default_text='Note' />)}
</Text>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,9 @@ import './missing-payment-method-note.scss';

const MissingPaymentMethodNote = () => {
return (
<div className='missing-payment-method-note'>
<Text as='p' className='missing-payment-method-note__title' size='xs' lh='m' weight='bold'>
<Localize i18n_default_text='Note' />
</Text>
<Text as='p' size='xxs' lh='s'>
<Localize i18n_default_text='Some payment methods may not be listed here but payment agents may still offer them. If you can’t find your favourite method, contact the payment agents directly to check further.' />
</Text>
</div>
<Text as='p' size='xxs' lh='s'>
<Localize i18n_default_text='Some payment methods may not be listed here but payment agents may still offer them. If you can’t find your favourite method, contact the payment agents directly to check further.' />
</Text>
);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,14 @@ const PaymentAgentContainer = ({
<SideNote has_title={false} is_mobile>
<PaymentAgentDisclaimer />
</SideNote>
<SideNote has_title is_mobile>
<MissingPaymentMethodNote />
</SideNote>
<SideNote has_title={false} is_mobile>
<PaymentAgentSignupSideNote />
</SideNote>
</>
)}
<SideNote className='payment-agent-list__side-note-second' has_title={false} is_mobile>
<MissingPaymentMethodNote />
</SideNote>
<div className='payment-agent-list__list-header'>
{is_deposit ? (
<Text as='p' line_height='s' size='xs'>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import DepositTab from './deposit-tab';
import WithdrawalTab from './withdrawal-tab';
import MissingPaymentMethodNote from '../missing-payment-method-note';
import PaymentAgentDisclaimer from '../payment-agent-disclaimer';
import { PaymentAgentSignupSideNote } from '../payment-agent-signup/components/signup-side-note';
import './payment-agent-list.scss';

type TProps = {
Expand All @@ -27,9 +28,12 @@ const PaymentAgentList = ({ setSideNotes }: TProps) => {
<SideNote has_title={false} key={0}>
<PaymentAgentDisclaimer />
</SideNote>,
<SideNote has_title={false} key={0}>
<SideNote has_title key={1}>
<MissingPaymentMethodNote />
</SideNote>,
<SideNote has_title={false} key={2}>
<PaymentAgentSignupSideNote />
</SideNote>,
]);
} else {
setSideNotes?.([]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ const Note = ({ note }: { note: TNote }) => {
<div className='signup-side-note'>
<div className='signup-side-note__header'>
{note.icon && <Icon icon={note.icon} size={16} custom_color={note.icon_color} />}
<Text as='p' color={note.title_color} size='xxs' line-height='m' weight='bold'>
<Text as='p' color={note.title_color} size='xs' line-height='m' weight='bold'>
{note.title}
</Text>
</div>
<Text as='p' className='signup-side-note__description' size='xxxs' line-height='s'>
<Text as='p' className='signup-side-note__description' size='xxs' line-height='s'>
{note.description}
</Text>
{note.tip && (
<Text as='p' className='signup-side-note__tip' size='xxxs' line-height='s'>
<Text as='p' className='signup-side-note__tip' size='xxs' line-height='s'>
{note.tip}
</Text>
)}
Expand Down

0 comments on commit c158e91

Please sign in to comment.