Skip to content

Commit 33d1a87

Browse files
authored
[ez][HUD] Dev infra navbar section to use other drop down (#7491)
Changes: * shadow is gone * highlighting when you hover * slightly denser old: <img width="181" height="614" alt="image" src="https://github.com/user-attachments/assets/b102cf27-6328-4362-8a40-203ace39505b" /> new: <img width="194" height="466" alt="image" src="https://github.com/user-attachments/assets/5fbe23df-6fdf-41da-84ea-ac473f1a129f" />
1 parent df117bf commit 33d1a87

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

torchci/components/layout/NavBar.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import React, { useState } from "react";
55
import { AiFillGithub } from "react-icons/ai";
66
import ThemeModePicker from "../common/ThemeModePicker";
77
import LoginSection from "./LoginSection";
8-
import { NavBarGroupDropdown } from "./NavBarGroupDropdown";
8+
import { NavBarGroupDropdown, NavItem } from "./NavBarGroupDropdown";
99

1010
const NavBarDropdown = ({
1111
title,
@@ -89,7 +89,7 @@ const NavBarDropdown = ({
8989
function NavBar() {
9090
const benchmarkDropdown = benchmarkNavGroup;
9191

92-
const devInfraDropdown = [
92+
const devInfraDropdown: NavItem[] = [
9393
{
9494
name: "TTS",
9595
href: "/tts",
@@ -147,7 +147,11 @@ function NavBar() {
147147
name: "Test File Reports",
148148
href: "/tests/fileReport",
149149
},
150-
];
150+
].map((item) => ({
151+
label: item.name,
152+
route: item.href,
153+
type: "item",
154+
}));
151155

152156
const metricsDropdown = [
153157
{
@@ -245,7 +249,7 @@ function NavBar() {
245249
</li>
246250
<NavBarGroupDropdown title="Benchmarks" items={benchmarkDropdown} />{" "}
247251
<NavBarDropdown title="Metrics" items={metricsDropdown} />
248-
<NavBarDropdown title="Dev Infra" items={devInfraDropdown} />
252+
<NavBarGroupDropdown title="Dev Infra" items={devInfraDropdown} />
249253
<li
250254
style={{ cursor: "pointer", display: "flex", alignItems: "center" }}
251255
>

0 commit comments

Comments
 (0)