diff options
author | 2019-09-05 15:11:01 +0200 | |
---|---|---|
committer | 2019-09-05 15:11:01 +0200 | |
commit | 49217c4945592af71bbf41863b0eba793f2f364f (patch) | |
tree | aa7069481cc103f5f6da2779f2f23ed3cadcd17a /src/components/layout/AppLayout.js | |
parent | Merge branch 'develop' of https://github.com/meetfranz/franz into develop (diff) | |
download | ferdium-app-49217c4945592af71bbf41863b0eba793f2f364f.tar.gz ferdium-app-49217c4945592af71bbf41863b0eba793f2f364f.tar.zst ferdium-app-49217c4945592af71bbf41863b0eba793f2f364f.zip |
Remove news item on CTA clicks
Diffstat (limited to 'src/components/layout/AppLayout.js')
-rw-r--r-- | src/components/layout/AppLayout.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/components/layout/AppLayout.js b/src/components/layout/AppLayout.js index 941e60bfd..200777ae6 100644 --- a/src/components/layout/AppLayout.js +++ b/src/components/layout/AppLayout.js | |||
@@ -125,7 +125,15 @@ class AppLayout extends Component { | |||
125 | sticky={item.sticky} | 125 | sticky={item.sticky} |
126 | onHide={() => removeNewsItem({ newsId: item.id })} | 126 | onHide={() => removeNewsItem({ newsId: item.id })} |
127 | > | 127 | > |
128 | <span dangerouslySetInnerHTML={createMarkup(item.message)} /> | 128 | <span |
129 | dangerouslySetInnerHTML={createMarkup(item.message)} | ||
130 | onClick={(event) => { | ||
131 | const { target } = event; | ||
132 | if (target && target.hasAttribute('data-is-news-cta')) { | ||
133 | removeNewsItem({ newsId: item.id }); | ||
134 | } | ||
135 | }} | ||
136 | /> | ||
129 | </InfoBar> | 137 | </InfoBar> |
130 | ))} | 138 | ))} |
131 | {hasActivatedTrial && ( | 139 | {hasActivatedTrial && ( |