From 998aac559ec75379b7fd25496ae06073c7b342c5 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Sun, 13 Feb 2022 19:35:21 +0100
Subject: chore: add some noscript tags to explain why the data are not loaded

---
 src/components/Widgets/RelatedTopics/RelatedTopics.tsx | 6 ++++++
 1 file changed, 6 insertions(+)

(limited to 'src/components/Widgets/RelatedTopics/RelatedTopics.tsx')

diff --git a/src/components/Widgets/RelatedTopics/RelatedTopics.tsx b/src/components/Widgets/RelatedTopics/RelatedTopics.tsx
index b9699e2..e225608 100644
--- a/src/components/Widgets/RelatedTopics/RelatedTopics.tsx
+++ b/src/components/Widgets/RelatedTopics/RelatedTopics.tsx
@@ -31,6 +31,12 @@ const RelatedTopics = ({ topics }: { topics: TopicPreview[] }) => {
       )}
       withBorders={true}
     >
+      <noscript>
+        {intl.formatMessage({
+          defaultMessage: 'Javascript is required to load the topics.',
+          description: 'RelatedTopics: noscript tag',
+        })}
+      </noscript>
       <List items={topicsList} />
     </ExpandableWidget>
   );
-- 
cgit v1.2.3

