diff options
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.js | 20 |
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> ) } |