diff --git a/packages/common/src/termsbox/TermsBox.tsx b/packages/common/src/termsbox/TermsBox.tsx index 3373178d2..3f44f502e 100644 --- a/packages/common/src/termsbox/TermsBox.tsx +++ b/packages/common/src/termsbox/TermsBox.tsx @@ -3,6 +3,7 @@ import React from "react"; import styled from "styled-components"; import { breakpoints } from "../common/style"; import { H6 } from "../common/typography"; +import Link from "next/link"; type LinkT = { href: string; @@ -53,7 +54,7 @@ const Content = styled.div` } `; -const Links = styled.ul` +const LinkList = styled.ul` list-style: none; margin-bottom: 0; padding: 0; @@ -62,9 +63,7 @@ const Links = styled.ul` gap: var(--spacing-2-xs); `; -const Link = styled.li``; - -const Anchor = styled.a` +const Anchor = styled(Link)` color: var(--color-black) !important; text-decoration: underline; display: flex; @@ -111,9 +110,9 @@ const TermsBox = ({ {heading}

{body}

{links && links?.length > 0 && ( - + {links.map((link) => ( - +
  • - +
  • ))} -
    + )} {canAccept && (