Skip to content

Commit

Permalink
Merge branch 'master' into FEQ-435/sonarcloud-bugs-shared-package
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienne-deriv committed Jul 19, 2023
2 parents 7894468 + dfa6dbf commit aaa82ae
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ jobs:
build_and_test:
docker:
- image: cimg/node:18.16.0
resource_class: large
resource_class: xlarge
steps:
- git_checkout_from_cache
- npm_install_from_cache
Expand Down
33 changes: 25 additions & 8 deletions packages/components/src/components/page-error/page-error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const PageError = ({
buttonOnClick?.();
}
};
const is_mobile = isMobile();

return (
// if image_url is passed we should split the page to two columns and left-align messages
Expand Down Expand Up @@ -79,7 +80,14 @@ const PageError = ({
'dc-page-error__box--malta': has_malta_account,
})}
>
<Text as='h3' size='l' align='center' weight='bold' line_height='s' color='prominent'>
<Text
as='h3'
size={is_mobile ? 's' : 'l'}
align='center'
weight='bold'
line_height='s'
color='prominent'
>
{header}
</Text>
<div
Expand All @@ -97,8 +105,8 @@ const PageError = ({
(message as TMessageObject)?.has_html ? (
<Text
as='p'
size='s'
align={isMobile() ? 'center' : 'left'}
size={is_mobile ? 'xxs' : 's'}
align={is_mobile ? 'center' : 'left'}
line_height='x'
key={index}
className='dc-page-error__message-paragraph'
Expand All @@ -107,8 +115,8 @@ const PageError = ({
) : (
<Text
as='p'
size='s'
align={isMobile() ? 'center' : 'left'}
size={is_mobile ? 'xxs' : 's'}
align={is_mobile ? 'center' : 'left'}
line_height='x'
key={index}
className='dc-page-error__message-paragraph'
Expand All @@ -130,7 +138,11 @@ const PageError = ({
size={buttonSize}
key={index}
>
<Text weight='bold' className='dc-page-error__btn-text dc-btn__text'>
<Text
weight='bold'
size={is_mobile ? 'xs' : 's'}
className='dc-page-error__btn-text dc-btn__text'
>
{redirect_labels[index]}
</Text>
</ButtonLink>
Expand All @@ -140,10 +152,15 @@ const PageError = ({
type='button'
className='dc-page-error__btn--no-redirect'
onClick={onClickHandler}
large
primary
large={!is_mobile}
medium={is_mobile}
>
<Text weight='bold' className='dc-page-error__btn-text dc-btn__text'>
<Text
weight='bold'
size={is_mobile ? 'xs' : 's'}
className='dc-page-error__btn-text dc-btn__text'
>
{redirect_labels[0]}
</Text>
</Button>
Expand Down

0 comments on commit aaa82ae

Please sign in to comment.