fix: links issues, translations and layouts

This commit is contained in:
Christel Westerberg
2024-07-05 14:25:35 +02:00
parent 1e3bbed6d1
commit e49065124b
4 changed files with 22 additions and 9 deletions

View File

@@ -23,7 +23,7 @@ function DynamicComponent({ component, props }: AccountPageContentProps) {
return (
<Overview
lang={props.lang}
link={undefined}
link={props.link}
subtitle={null}
title={props.title}
/>
@@ -56,7 +56,11 @@ export default function Content({ lang, content }: ContentProps) {
href:
item.dynamic_content.link.linkConnection.edges[0].node
.original_url ||
`/${lang}/webview${item.dynamic_content.link.linkConnection.edges[0].node.url}`,
modWebviewLink(
item.dynamic_content.link.linkConnection.edges[0].node
.url,
lang
),
text: item.dynamic_content.link.link_text,
}
: null