Skip to content

Commit

Permalink
Revert "let's not be dangerous 💥" (github#35659)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbe authored Mar 17, 2023
1 parent ba5a3df commit 9ffd1e3
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions components/page-header/RestBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,15 @@ export const RestBanner = () => {
className="container-xl mt-3 mx-auto p-responsive"
>
<Flash>
<span>{bannerText}</span>{' '}
<span>
{t('rest.banner.api_version_info').replace(
/{{\s*versionWithApiVersion\s*}}/,
versionWithApiVersion === DEFAULT_VERSION ? '' : `/${versionWithApiVersion}`
)}
</span>
<span dangerouslySetInnerHTML={{ __html: bannerText }} />{' '}
<span
dangerouslySetInnerHTML={{
__html: t('rest.banner.api_version_info').replace(
/{{\s*versionWithApiVersion\s*}}/,
versionWithApiVersion === DEFAULT_VERSION ? '' : `/${versionWithApiVersion}`
),
}}
/>
</Flash>
</div>
)
Expand Down

0 comments on commit 9ffd1e3

Please sign in to comment.