summaryrefslogtreecommitdiffstats
path: root/src/components/Widgets/RelatedThematics/RelatedThematics.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-02-14 17:16:53 +0100
committerArmand Philippot <git@armandphilippot.com>2022-02-14 17:30:37 +0100
commit916c512bf5a31041ac87296e1382f84c9367b955 (patch)
tree9541124a1339ce6e12f46983fce875b41d1fff00 /src/components/Widgets/RelatedThematics/RelatedThematics.tsx
parent79f7688703fe42ce87c92567f5bc92b6691eaa20 (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/RelatedThematics/RelatedThematics.tsx')
-rw-r--r--src/components/Widgets/RelatedThematics/RelatedThematics.tsx7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/components/Widgets/RelatedThematics/RelatedThematics.tsx b/src/components/Widgets/RelatedThematics/RelatedThematics.tsx
index e89d887..74325bb 100644
--- a/src/components/Widgets/RelatedThematics/RelatedThematics.tsx
+++ b/src/components/Widgets/RelatedThematics/RelatedThematics.tsx
@@ -21,6 +21,7 @@ const RelatedThematics = ({ thematics }: { thematics: ThematicPreview[] }) => {
return (
<ExpandableWidget
+ expand={true}
title={intl.formatMessage(
{
defaultMessage:
@@ -31,12 +32,6 @@ const RelatedThematics = ({ thematics }: { thematics: ThematicPreview[] }) => {
)}
withBorders={true}
>
- <noscript>
- {intl.formatMessage({
- defaultMessage: 'Javascript is required to load the thematics.',
- description: 'RelatedThematics: noscript tag',
- })}
- </noscript>
<List items={thematicsList} />
</ExpandableWidget>
);