-
Notifications
You must be signed in to change notification settings - Fork 229
Mohsen / fixed duplicate idv notification error #7154
Mohsen / fixed duplicate idv notification error #7154
Conversation
co-authored : <mitra@deriv.com>
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
A production App ID was automatically generated for this PR. (log)
Click here to copy & paste above information. |
habib-deriv
left a comment
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.
LGTM
| const showNoticeMessage = (text) => { | ||
| const reload_function = () => { | ||
| window.location.reload(); | ||
| }; | ||
|
|
||
| const button_reload = $('<button/>' , { class: 'button container' , type: 'button' , text: 'Try Again' }).on('click' , reload_function).css({ 'margin': '0 auto' ,'display': 'block' }); | ||
| $('#content').empty().html($('<div/>', { class: 'container' }).append($('<p/>', { class: 'notice-msg center-text', text })).append(button_reload)); | ||
| }; |
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.
| const showNoticeMessage = (text) => { | |
| const reload_function = () => { | |
| window.location.reload(); | |
| }; | |
| const button_reload = $('<button/>' , { class: 'button container' , type: 'button' , text: 'Try Again' }).on('click' , reload_function).css({ 'margin': '0 auto' ,'display': 'block' }); | |
| $('#content').empty().html($('<div/>', { class: 'container' }).append($('<p/>', { class: 'notice-msg center-text', text })).append(button_reload)); | |
| }; | |
| const showNoticeMessage = (text) => { | |
| const reload_function = () => { | |
| window.location.reload(); | |
| }; | |
| const button_reload = $('<button/>' , { class: 'button container' , type: 'button' , text: 'Try Again' }).on('click' , reload_function).css({ 'margin': '0 auto' ,'display': 'block' }); | |
| $('#content').empty().html($('<div/>', { class: 'container' }).append($('<p/>', { class: 'notice-msg center-text', text })).append(button_reload)); | |
| }; |
I think it's best that we move this to the template jsx and attach an id with a default of hidden. That's how things are done in this project. Show/Hide 😅 we don't usually construct markup from JQuery like this
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.
Thanks @yashim-deriv , I applied the suggested changes, I was not aware of the ways of binary-com project.
|
Kudos, SonarCloud Quality Gate passed!
|
- updated node versions in package.json, circlci config and crowdin github action
…hio-rework/binary-static into fix-dupilcate-idv-notification-error
|
Kudos, SonarCloud Quality Gate passed!
|








changes:
co-authored : mitra@deriv.com