Skip to content

Commit

Permalink
fix: enable to have the hostname without "/"
Browse files Browse the repository at this point in the history
  • Loading branch information
AliKdhim87 committed Aug 2, 2023
1 parent cc54065 commit 6ab0414
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 18 deletions.
6 changes: 5 additions & 1 deletion apps/frontend/src/components/Markdown/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,12 @@ interface MarkdownProps {
}

export const Markdown: React.FC<MarkdownProps> = ({ children, priceData, locale, strapiBackendURL }) => {
const url = strapiBackendURL ? new URL(strapiBackendURL) : null;
return (
<ReactMarkdown components={components({ priceData, locale, strapiBackendURL })} rehypePlugins={[rehypeRaw]}>
<ReactMarkdown
components={components({ priceData, locale, strapiBackendURL: url?.origin ?? '' })}
rehypePlugins={[rehypeRaw]}
>
{children}
</ReactMarkdown>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,18 @@
"attributes": {
"singleDigitalGateway": {
"type": "enumeration",
"enum": [
"ja",
"nee"
],
"enum": ["ja", "nee"],
"required": true,
"private": true
},
"attachementAdded": {
"type": "enumeration",
"enum": [
"ja",
"nee"
],
"enum": ["ja", "nee"],
"private": true
},
"linkedEForm": {
"type": "enumeration",
"enum": [
"ja",
"nee"
],
"enum": ["ja", "nee"],
"private": true,
"required": true
},
Expand All @@ -47,11 +38,7 @@
},
"identificationMethod": {
"type": "enumeration",
"enum": [
"digid",
"eherkenning",
"eidas"
]
"enum": ["digid", "eherkenning", "eidas"]
}
}
}

0 comments on commit 6ab0414

Please sign in to comment.