-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hubert / Fixes for mx uk revert (#4200)
* Revert "Revert "URGENT - Banner and modal to inform UK clients of MX account closure. (#4166)" (#4196)" This reverts commit d47f948. * Fullscreen MX dialog * fixes for notification * wait for settings before showing full-screen error * Proper padding for mobile and autoscroll * Update styling Co-authored-by: Matin shafiei <[email protected]> Co-authored-by: Mohammadreza Ghorbani <[email protected]> Co-authored-by: Hubert Koster <[email protected]>
- Loading branch information
1 parent
d47f948
commit 32eb8d7
Showing
40 changed files
with
985 additions
and
3,694 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
packages/components/src/components/icon/common/ic-amplifier.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
packages/core/src/App/Components/Elements/NotificationMessage/notification-close-mx.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import PropTypes from 'prop-types'; | ||
import React from 'react'; | ||
import { isMobile } from '@deriv/shared'; | ||
import { Button, Icon, Text } from '@deriv/components'; | ||
|
||
const NotificationCloseMX = ({ header, message, secondary_btn, img_src, img_alt, onClose }) => ( | ||
<div className='close-mx notification-banner'> | ||
<div className='notification-banner--left'> | ||
<Text as='h4' size={isMobile() ? 'xs' : 's'} weight='bold' className='notification-banner__title'> | ||
{header} | ||
</Text> | ||
<Text as='p' size={isMobile() ? 'xxs' : 'xs'} className='notification-banner__description' line_height='xs'> | ||
{message} | ||
</Text> | ||
{!!secondary_btn && ( | ||
<div className='notification-banner__btn-wrapper'> | ||
<Button className='notification-banner__btn' secondary small onClick={secondary_btn.onClick}> | ||
{secondary_btn.text} | ||
</Button> | ||
</div> | ||
)} | ||
</div> | ||
<div className='notification-banner--right'> | ||
<div className='notification-banner__bg' /> | ||
<img className='notification-banner__img' src={img_src} alt={img_alt} /> | ||
<Icon className='notification-banner__close-icon' icon='IcCloseLight' onClick={onClose} /> | ||
</div> | ||
</div> | ||
); | ||
|
||
NotificationCloseMX.propTypes = { | ||
header: PropTypes.string, | ||
img_alt: PropTypes.string, | ||
img_src: PropTypes.string, | ||
message: PropTypes.string, | ||
onClose: PropTypes.func, | ||
secondary_btn: PropTypes.shape({ | ||
text: PropTypes.string, | ||
onClick: PropTypes.func, | ||
}), | ||
}; | ||
|
||
export default NotificationCloseMX; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
32eb8d7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: