diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-02-14 17:16:53 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-02-14 17:30:37 +0100 |
| commit | 916c512bf5a31041ac87296e1382f84c9367b955 (patch) | |
| tree | 9541124a1339ce6e12f46983fce875b41d1fff00 /src/components/Widgets/RelatedTopics | |
| parent | 79f7688703fe42ce87c92567f5bc92b6691eaa20 (diff) | |
chore: display initial posts, thematics & topics
By fetching the data in getStaticProps, I can display the data even
for users with Javascript disabled.
Diffstat (limited to 'src/components/Widgets/RelatedTopics')
| -rw-r--r-- | src/components/Widgets/RelatedTopics/RelatedTopics.tsx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/components/Widgets/RelatedTopics/RelatedTopics.tsx b/src/components/Widgets/RelatedTopics/RelatedTopics.tsx index e225608..1702e82 100644 --- a/src/components/Widgets/RelatedTopics/RelatedTopics.tsx +++ b/src/components/Widgets/RelatedTopics/RelatedTopics.tsx @@ -21,6 +21,7 @@ const RelatedTopics = ({ topics }: { topics: TopicPreview[] }) => { return ( <ExpandableWidget + expand={true} title={intl.formatMessage( { defaultMessage: @@ -31,12 +32,6 @@ 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> ); |
