Link component has been added to the icon to referense to the home page

This commit is contained in:
“Salar 2022-10-12 11:50:17 +03:00
parent 43a73bc538
commit 5afd4ced4d

View File

@ -2,10 +2,11 @@ import React from "react";
import Breadcrumbs from "components/breadcrumbs";
import Logo from "components/Logo";
import classNames from "classnames";
import Link from "components/Link";
type ArticleBreadcumbsProps = {
emphasis?: "high" | "low";
children?: string[];
children?: React.ReactNode;
};
export function ArticleBreadcumbs({
@ -22,7 +23,11 @@ export function ArticleBreadcumbs({
}
)}
>
{emphasis === "high" ? <Logo className="w-4" fillColors="gray" /> : null}
{emphasis === "high" ? (
<Link href="/">
<Logo className="w-4" fillColors="gray" />
</Link>
) : null}
{children}
</Breadcrumbs>
);