|
@@ -68,6 +68,8 @@ class Notification extends AbstractNotification<Props> {
|
68
|
68
|
|
69
|
69
|
_getDescription: () => Array<string>
|
70
|
70
|
|
|
71
|
+ _getDescriptionKey: () => string
|
|
72
|
+
|
71
|
73
|
_onDismissed: () => void;
|
72
|
74
|
|
73
|
75
|
/**
|
|
@@ -78,11 +80,12 @@ class Notification extends AbstractNotification<Props> {
|
78
|
80
|
* @returns {ReactElement}
|
79
|
81
|
*/
|
80
|
82
|
_renderDescription() {
|
|
83
|
+ const description = this._getDescription();
|
|
84
|
+
|
|
85
|
+ // the id is used for testing the UI
|
81
|
86
|
return (
|
82
|
|
- <div>
|
83
|
|
- {
|
84
|
|
- this._getDescription()
|
85
|
|
- }
|
|
87
|
+ <div id = { this._getDescriptionKey() || description || this.props.titleKey || this.props.title } >
|
|
88
|
+ { description }
|
86
|
89
|
</div>
|
87
|
90
|
);
|
88
|
91
|
}
|