From 0c9f5d982b1ba9cc5b8405d75f7454d30e13b475 Mon Sep 17 00:00:00 2001 From: Ben Gazzard Date: Tue, 5 Dec 2023 14:09:08 +0000 Subject: [PATCH] Update breadcrumbs per designs --- .../web/src/components/KurtosisBreadcrumbs.tsx | 14 +++++--------- .../web/src/emui/enclaves/EnclaveRoutes.tsx | 15 ++++++++++----- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/enclave-manager/web/src/components/KurtosisBreadcrumbs.tsx b/enclave-manager/web/src/components/KurtosisBreadcrumbs.tsx index f10b798379..611e3492f7 100644 --- a/enclave-manager/web/src/components/KurtosisBreadcrumbs.tsx +++ b/enclave-manager/web/src/components/KurtosisBreadcrumbs.tsx @@ -215,15 +215,11 @@ type KurtosisBreadcrumbItemProps = KurtosisBreadcrumb & { }; const KurtosisBreadcrumbItem = ({ name, destination, alternatives, isLastItem }: KurtosisBreadcrumbItemProps) => { - if (isLastItem) { - return ( - - {name} - - ); - } - - const baseLink = ( + const baseLink = isLastItem ? ( + + {name} + + ) : (