aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/modal/modal-content/modal-content.component.js
diff options
context:
space:
mode:
authorAlexander Tseung <alextsg@gmail.com>2018-09-20 05:30:52 +0800
committerAlexander Tseung <alextsg@gmail.com>2018-09-20 05:31:10 +0800
commit2cfdc95eebc3e0a878017090f22e5136cff709a6 (patch)
tree34ba4eee9afad4c92d748f76f76b50a0ae96a113 /ui/app/components/modal/modal-content/modal-content.component.js
parent77e8eac4b380b35f4ab2e6abd82fe929ec7f7c1b (diff)
downloadtangerine-wallet-browser-2cfdc95eebc3e0a878017090f22e5136cff709a6.tar
tangerine-wallet-browser-2cfdc95eebc3e0a878017090f22e5136cff709a6.tar.gz
tangerine-wallet-browser-2cfdc95eebc3e0a878017090f22e5136cff709a6.tar.bz2
tangerine-wallet-browser-2cfdc95eebc3e0a878017090f22e5136cff709a6.tar.lz
tangerine-wallet-browser-2cfdc95eebc3e0a878017090f22e5136cff709a6.tar.xz
tangerine-wallet-browser-2cfdc95eebc3e0a878017090f22e5136cff709a6.tar.zst
tangerine-wallet-browser-2cfdc95eebc3e0a878017090f22e5136cff709a6.zip
Add unit tests
Diffstat (limited to 'ui/app/components/modal/modal-content/modal-content.component.js')
-rw-r--r--ui/app/components/modal/modal-content/modal-content.component.js20
1 files changed, 14 insertions, 6 deletions
diff --git a/ui/app/components/modal/modal-content/modal-content.component.js b/ui/app/components/modal/modal-content/modal-content.component.js
index 8beb854e0..ecec0ee5b 100644
--- a/ui/app/components/modal/modal-content/modal-content.component.js
+++ b/ui/app/components/modal/modal-content/modal-content.component.js
@@ -12,12 +12,20 @@ export default class ModalContent extends PureComponent {
return (
<div className="modal-content">
- <div className="modal-content__title">
- { title }
- </div>
- <div className="modal-content__description">
- { description }
- </div>
+ {
+ title && (
+ <div className="modal-content__title">
+ { title }
+ </div>
+ )
+ }
+ {
+ description && (
+ <div className="modal-content__description">
+ { description }
+ </div>
+ )
+ }
</div>
)
}