Skip to content

Commit

Permalink
navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
Anders Schwartz committed Nov 9, 2023
1 parent fcfe239 commit 3ed1241
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ export const FilesTable = ({ filesAndArtifacts, enclave }: FilesTableProps) => {
//<Link to={`/enclave/${enclave.shortenedUuid}/file/${row.original.fileUuid}`}>
//<Button size={"sm"} variant={"ghost"}>
getValue(),
//</Button>
//</Link>
//</Button>
//</Link>
}),
columnHelper.display({
id: "download",
Expand Down
9 changes: 8 additions & 1 deletion enclave-manager/web/src/emui/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,14 @@ const KurtosisRouter = () => {
[
{
element: (
<AppLayout Nav={<Navbar isRunningInCloud={kurtosisClient.isRunningInCloud()} baseApplicationUrl={kurtosisClient.getBaseApplicationUrl()} />}>
<AppLayout
Nav={
<Navbar
isRunningInCloud={kurtosisClient.isRunningInCloud()}
baseApplicationUrl={kurtosisClient.getBaseApplicationUrl()}
/>
}
>
<Outlet />
<CreateEnclave />
</AppLayout>
Expand Down
8 changes: 2 additions & 6 deletions enclave-manager/web/src/emui/Navbar.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { FiHome } from "react-icons/fi";
import { PiLinkSimpleBold } from "react-icons/pi";
import { Link, useLocation } from "react-router-dom";
import { NavButton, Navigation } from "../components/Navigation";
import { KURTOSIS_CLOUD_CONNECT_URL } from "../client/constants";
import { NavButton, Navigation } from "../components/Navigation";

export type NavbarProps = {
baseApplicationUrl: URL;
Expand All @@ -23,11 +23,7 @@ export const Navbar = ({ isRunningInCloud, baseApplicationUrl }: NavbarProps) =>
</Link>
{isRunningInCloud && (
<Link to={KURTOSIS_CLOUD_CONNECT_URL}>
<NavButton
label={"Link your CLI"}
Icon={<PiLinkSimpleBold />}
isActive={true}
/>
<NavButton label={"Link your CLI"} Icon={<PiLinkSimpleBold />} isActive={true} />
</Link>
)}
{/*<Link to={"/catalog"}>*/}
Expand Down

0 comments on commit 3ed1241

Please sign in to comment.