Skip to content

Commit

Permalink
[Feature] Add Chainlist link and update header styles (thirdweb-dev#3899
Browse files Browse the repository at this point in the history
)

<!-- start pr-codex -->

## PR-Codex overview
The focus of this PR is to add a new link "Chainlist" to the dashboard header and update styles for better user experience.

### Detailed summary
- Added "Chainlist" link to the dashboard header
- Updated styles for the "Chainlist" link to match the design
- Adjusted styles for active links in the header for better visibility and consistency

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
  • Loading branch information
jnsdls committed Aug 2, 2024
1 parent 366646e commit b06272c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/dashboard/src/app/components/Header/DashboardHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ export function DashboardHeader() {
key={link.href}
href={link.href}
target={link.href.startsWith("https") ? "_blank" : undefined}
className="text-foreground font-medium py-2 px-[10px] hover:underline"
activeClassName="font-semibold"
className="text-secondary-foreground font-medium py-2 px-[10px] hover:text-foreground"
activeClassName="font-medium text-foreground"
>
{link.name}
</NavLink>
Expand All @@ -45,7 +45,7 @@ export function DashboardHeader() {
key={link.href}
href={link.href}
target={link.href.startsWith("https") ? "_blank" : undefined}
className="text-foreground font-medium py-2 px-[10px] hover:underline"
className="text-secondary-foreground font-medium py-2 px-[10px] hover:text-foreground"
>
{link.name}
</Link>
Expand Down
4 changes: 4 additions & 0 deletions apps/dashboard/src/app/components/Header/headerLinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ export const headerLinks = {
name: "Engine",
href: "/dashboard/engine",
},
{
name: "Chainlist",
href: "/chainlist",
},
{
name: "Settings",
href: "/dashboard/settings/api-keys",
Expand Down
11 changes: 11 additions & 0 deletions apps/dashboard/src/components/layout/app-shell/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,17 @@ const AppHeader: React.FC = () => {
>
Engine
</LinkButton>
<LinkButton
href="/chainlist"
isActive={pathname === "/chainlist"}
_active={{
bg: "bgBlack",
color: "bgWhite",
}}
rounded="lg"
>
Chainlist
</LinkButton>
<LinkButton
href="/dashboard/settings/api-keys"
isActive={pathname.startsWith("/dashboard/settings")}
Expand Down

0 comments on commit b06272c

Please sign in to comment.