aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/modals/notification/notification.component.js
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-06-01 01:58:03 +0800
committerDan <danjm.com@gmail.com>2018-06-01 01:58:03 +0800
commit5091b03e4b2499697cda376a44405139827068cd (patch)
treeda91af2a0ce21871c15611f768f09757ef2c8533 /ui/app/components/modals/notification/notification.component.js
parent6d8344d0d0af3734255a0e9e79d857d84b5fe2aa (diff)
parentcc73d869fed79c63261821fb7ad8f1e5180ffca2 (diff)
downloadtangerine-wallet-browser-5091b03e4b2499697cda376a44405139827068cd.tar.gz
tangerine-wallet-browser-5091b03e4b2499697cda376a44405139827068cd.tar.zst
tangerine-wallet-browser-5091b03e4b2499697cda376a44405139827068cd.zip
Merge branch 'develop' into i3725-refactor-send-component-
Diffstat (limited to 'ui/app/components/modals/notification/notification.component.js')
-rw-r--r--ui/app/components/modals/notification/notification.component.js30
1 files changed, 30 insertions, 0 deletions
diff --git a/ui/app/components/modals/notification/notification.component.js b/ui/app/components/modals/notification/notification.component.js
new file mode 100644
index 000000000..1af2f3ca8
--- /dev/null
+++ b/ui/app/components/modals/notification/notification.component.js
@@ -0,0 +1,30 @@
+import React from 'react'
+import PropTypes from 'prop-types'
+import Button from '../../button'
+
+const Notification = (props, context) => {
+ return (
+ <div className="modal-container">
+ { props.children }
+ <div className="modal-container__footer">
+ <Button
+ type="primary"
+ onClick={() => props.onHide()}
+ >
+ { context.t('ok') }
+ </Button>
+ </div>
+ </div>
+ )
+}
+
+Notification.propTypes = {
+ onHide: PropTypes.func.isRequired,
+ children: PropTypes.element,
+}
+
+Notification.contextTypes = {
+ t: PropTypes.func,
+}
+
+export default Notification