Skip to content

Commit

Permalink
Navbar cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
codenamejason committed Jun 10, 2024
1 parent f359500 commit 16689b9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 98 deletions.
79 changes: 0 additions & 79 deletions packages/round-manager/src/features/common/CreateDropdown.tsx

This file was deleted.

27 changes: 8 additions & 19 deletions packages/round-manager/src/features/common/Navbar.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { Link } from "react-router-dom";
import { ChevronDownIcon, PlusSmIcon } from "@heroicons/react/solid";
import { ChevronDownIcon, HomeIcon, PlusSmIcon } from "@heroicons/react/solid";
import { ReactComponent as ManagerLogoDark } from "../../assets/manager-logo-dark.svg";
import { ReactComponent as GitcoinLogoDark } from "../../assets/gitcoin-logo-dark.svg";
import { Button } from "common/src/styles";
import { ConnectButton } from "@rainbow-me/rainbowkit";
import CreateDropdown from "./CreateDropdown";

export interface NavbarProps {
programCta?: boolean;
Expand Down Expand Up @@ -32,23 +31,13 @@ export default function Navbar({ programCta: programCta = true }: NavbarProps) {
<div className="flex items-center gap-4">
<div className="flex-shrink-0">
{programCta && (
<CreateDropdown
actions={[
{
chainId: 1,
roundId: "1",
name: "Create a new program",
link: "/program/create",
},
{
chainId: 1,
roundId: "2",
name: "Create a new round",
// todo: this route does not exist
link: "/round/create",
},
]}
/>
<Button
className="inline-flex w-full items-center gap-x-1.5 bg-transparent px-3 py-2 text-mono text-sm text-gray-500"
data-testid="program-cta"
>
<HomeIcon className="h-6 w-6" />
<span className="mr-2">Dashboard</span>
</Button>
)}
</div>
<div
Expand Down

0 comments on commit 16689b9

Please sign in to comment.