fix: add link to overview

This commit is contained in:
Christel Westerberg
2024-05-22 15:26:30 +02:00
parent bac513ec4c
commit ad5fb9c89d
8 changed files with 34 additions and 105 deletions

View File

@@ -1,15 +0,0 @@
"use client"
import { useRouter } from "next/navigation"
import Button from "../TempDesignSystem/Button"
export default function BackButton() {
const router = useRouter()
function goBack() {
router.back()
}
return <Button onClick={goBack}>Go Back!</Button>
}

View File

@@ -0,0 +1,18 @@
import { ArrowLeft } from "react-feather"
import { overview } from "@/constants/routes/webviews"
import { _ } from "@/lib/translation"
import Link from "@/components/TempDesignSystem/Link"
import styles from "./linkToOverview.module.css"
import { LangParams } from "@/types/params"
export default function LinkToOverview({ lang }: LangParams) {
return (
<Link className={styles.overviewLink} href={overview[lang]}>
<ArrowLeft height={20} width={20} /> {_("Go back to overview")}
</Link>
)
}

View File

@@ -0,0 +1,7 @@
.overviewLink {
font-size: 1.6rem;
color: var(--Scandic-Brand-Burgundy, #4d001b);
display: flex;
align-items: center;
gap: 1rem;
}