Link component has been added to the icon to referense to the home page
This commit is contained in:
parent
43a73bc538
commit
5afd4ced4d
@ -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>
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user