feat: Breadcrumb Common

This commit is contained in:
sonnguyenkieio 2021-09-06 09:55:02 +07:00
parent a655c6daf2
commit bfd4c69368

View File

@ -9,7 +9,7 @@ interface BreadcrumbCommonProps {
showHomePage?: boolean; showHomePage?: boolean;
} }
const BreadcrumbCommon = ({ crumbs, showHomePage=false } : BreadcrumbCommonProps) => { const BreadcrumbCommon = ({ crumbs, showHomePage=true } : BreadcrumbCommonProps) => {
if (showHomePage) { if (showHomePage) {
crumbs.unshift({link: "/", name: "Home"}); crumbs.unshift({link: "/", name: "Home"});
} }