aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/ui-migration-annoucement/ui-migration-annoucement.component.js
diff options
context:
space:
mode:
authorWhymarrh Whitby <whymarrh.whitby@gmail.com>2019-02-05 22:12:06 +0800
committerGitHub <noreply@github.com>2019-02-05 22:12:06 +0800
commit697d5adfc857e6e1338167a14757b38eb4d3172c (patch)
treebd657661a3f107666f67c40b6b448b8210f8c7b7 /ui/app/components/ui-migration-annoucement/ui-migration-annoucement.component.js
parent7bbd6e70393027bbbeecccdef71eaf70aac52c45 (diff)
parentf3a7054f6b25a43b55bb6bda77b084171d611d12 (diff)
downloadtangerine-wallet-browser-697d5adfc857e6e1338167a14757b38eb4d3172c.tar
tangerine-wallet-browser-697d5adfc857e6e1338167a14757b38eb4d3172c.tar.gz
tangerine-wallet-browser-697d5adfc857e6e1338167a14757b38eb4d3172c.tar.bz2
tangerine-wallet-browser-697d5adfc857e6e1338167a14757b38eb4d3172c.tar.lz
tangerine-wallet-browser-697d5adfc857e6e1338167a14757b38eb4d3172c.tar.xz
tangerine-wallet-browser-697d5adfc857e6e1338167a14757b38eb4d3172c.tar.zst
tangerine-wallet-browser-697d5adfc857e6e1338167a14757b38eb4d3172c.zip
Merge pull request #6082 from whymarrh/migrate-to-new-ui
Migrate all users to the new UI
Diffstat (limited to 'ui/app/components/ui-migration-annoucement/ui-migration-annoucement.component.js')
-rw-r--r--ui/app/components/ui-migration-annoucement/ui-migration-annoucement.component.js33
1 files changed, 33 insertions, 0 deletions
diff --git a/ui/app/components/ui-migration-annoucement/ui-migration-annoucement.component.js b/ui/app/components/ui-migration-annoucement/ui-migration-annoucement.component.js
new file mode 100644
index 000000000..7a4124972
--- /dev/null
+++ b/ui/app/components/ui-migration-annoucement/ui-migration-annoucement.component.js
@@ -0,0 +1,33 @@
+import PropTypes from 'prop-types'
+import React, {PureComponent} from 'react'
+
+export default class UiMigrationAnnouncement extends PureComponent {
+ static contextTypes = {
+ t: PropTypes.func.isRequired,
+ }
+
+ static defaultProps = {
+ shouldShowAnnouncement: true,
+ };
+
+ static propTypes = {
+ onClose: PropTypes.func.isRequired,
+ shouldShowAnnouncement: PropTypes.bool,
+ }
+
+ render () {
+ const { t } = this.context
+ const { onClose, shouldShowAnnouncement } = this.props
+
+ if (!shouldShowAnnouncement) {
+ return null
+ }
+
+ return (
+ <div className="ui-migration-announcement">
+ <p>{t('uiMigrationAnnouncement')}</p>
+ <p onClick={onClose}>{t('close')}</p>
+ </div>
+ )
+ }
+}