diff options
author | PhyrexTsai <x01ep23i@hotmail.com> | 2018-06-01 15:41:18 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-01 15:41:18 +0800 |
commit | f90d07019081695ef3d697c5af0ae2bee3bb1637 (patch) | |
tree | f7c68bb9bcaaddc035c6595bb78fcba98d6cfd1c /ui/app/components/modals/notification/notification.component.js | |
parent | cc5bdadbf1f12f3f8d7f24f9bcf7ea81fe93f012 (diff) | |
parent | cc73d869fed79c63261821fb7ad8f1e5180ffca2 (diff) | |
download | tangerine-wallet-browser-f90d07019081695ef3d697c5af0ae2bee3bb1637.tar.gz tangerine-wallet-browser-f90d07019081695ef3d697c5af0ae2bee3bb1637.tar.zst tangerine-wallet-browser-f90d07019081695ef3d697c5af0ae2bee3bb1637.zip |
Merge branch 'develop' into portal-metamask
Diffstat (limited to 'ui/app/components/modals/notification/notification.component.js')
-rw-r--r-- | ui/app/components/modals/notification/notification.component.js | 30 |
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 |