Skip to content

Commit

Permalink
Merge pull request #881 from statisticsnorway/hide-terms-if-hidden
Browse files Browse the repository at this point in the history
Hide terms link if no terms are provided
  • Loading branch information
garronej authored Nov 21, 2024
2 parents 52c3ddc + a11e8f2 commit 6cac460
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions web/src/ui/App/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,13 @@ export const Footer = memo((props: Props) => {
changeLanguageText={t("change language")}
/>
)}
{spacing}
<a {...routes.terms().link}>
{" "}
<Text typo="body 2">{t("terms of service")}</Text>{" "}
</a>
{env.TERMS_OF_SERVICES !== undefined && spacing}
{env.TERMS_OF_SERVICES !== undefined && (
<a {...routes.terms().link}>
{" "}
<Text typo="body 2">{t("terms of service")}</Text>{" "}
</a>
)}
{spacing}
{env.ONYXIA_VERSION !== undefined && (
<a href={env.ONYXIA_VERSION_URL} target="_blank" rel="noreferrer">
Expand Down

0 comments on commit 6cac460

Please sign in to comment.