From 998aac559ec75379b7fd25496ae06073c7b342c5 Mon Sep 17 00:00:00 2001 From: Armand Philippot 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/RecentPosts/RecentPosts.tsx | 12 +++++++++++- src/components/Widgets/RelatedThematics/RelatedThematics.tsx | 6 ++++++ src/components/Widgets/RelatedTopics/RelatedTopics.tsx | 6 ++++++ src/components/Widgets/ThematicsList/ThematicsList.tsx | 6 ++++++ src/components/Widgets/ToC/ToC.tsx | 7 +++++++ src/components/Widgets/TopicsList/TopicsList.tsx | 6 ++++++ 6 files changed, 42 insertions(+), 1 deletion(-) (limited to 'src/components') diff --git a/src/components/Widgets/RecentPosts/RecentPosts.tsx b/src/components/Widgets/RecentPosts/RecentPosts.tsx index 1507edf..b7957b7 100644 --- a/src/components/Widgets/RecentPosts/RecentPosts.tsx +++ b/src/components/Widgets/RecentPosts/RecentPosts.tsx @@ -67,7 +67,17 @@ const RecentPosts = () => { return data.posts.map((post) => getPost(post)); }; - return ; + return ( + + ); }; export default RecentPosts; diff --git a/src/components/Widgets/RelatedThematics/RelatedThematics.tsx b/src/components/Widgets/RelatedThematics/RelatedThematics.tsx index c6be3ca..e89d887 100644 --- a/src/components/Widgets/RelatedThematics/RelatedThematics.tsx +++ b/src/components/Widgets/RelatedThematics/RelatedThematics.tsx @@ -31,6 +31,12 @@ const RelatedThematics = ({ thematics }: { thematics: ThematicPreview[] }) => { )} withBorders={true} > + ); 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} > + ); diff --git a/src/components/Widgets/ThematicsList/ThematicsList.tsx b/src/components/Widgets/ThematicsList/ThematicsList.tsx index e59050d..f175e80 100644 --- a/src/components/Widgets/ThematicsList/ThematicsList.tsx +++ b/src/components/Widgets/ThematicsList/ThematicsList.tsx @@ -62,6 +62,12 @@ const ThematicsList = ({ withBorders={true} expand={true} > + {getList()} ); diff --git a/src/components/Widgets/ToC/ToC.tsx b/src/components/Widgets/ToC/ToC.tsx index f3f783c..89ca8d4 100644 --- a/src/components/Widgets/ToC/ToC.tsx +++ b/src/components/Widgets/ToC/ToC.tsx @@ -37,6 +37,13 @@ const ToC = () => { return ( + ); diff --git a/src/components/Widgets/TopicsList/TopicsList.tsx b/src/components/Widgets/TopicsList/TopicsList.tsx index 109b212..e79d1a8 100644 --- a/src/components/Widgets/TopicsList/TopicsList.tsx +++ b/src/components/Widgets/TopicsList/TopicsList.tsx @@ -62,6 +62,12 @@ const TopicsList = ({ withBorders={true} expand={true} > + {getList()} ); -- cgit v1.2.3