Skip to content

Commit ab74fcd

Browse files
committed
add new apis tab to nav (#7044)
<!-- ## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes" If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000): ## Notes for the reviewer Anything important to call out? Be sure to also clarify these in your comments. ## How to test Unit tests, playground, etc. --> <!-- start pr-codex --> --- ## PR-Codex overview This PR adds a new section to the `Header` component in the `Header.tsx` file, introducing `apisLinks` for API documentation links and integrating a `DropdownLinks` component for displaying these links. ### Detailed summary - Added a new constant `apisLinks` containing links to API documentation. - Introduced a `DropdownLinks` component to display `apisLinks` in the header. - Adjusted padding in the header's layout from `xl:px-2` to `xl:px-1` for the new dropdown. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent 1191d5d commit ab74fcd

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

apps/portal/src/app/Header.tsx

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,21 @@ export const connectLinks: Array<{
117117
},
118118
] as const;
119119

120+
const apisLinks = [
121+
{
122+
name: "Insight",
123+
href: "https://insight-api.thirdweb.com/reference",
124+
},
125+
{
126+
name: "Engine Cloud",
127+
href: "https://engine.thirdweb.com/reference#tag/write",
128+
},
129+
{
130+
name: "Universal Bridge",
131+
href: "https://bridge.thirdweb.com/reference",
132+
},
133+
];
134+
120135
const supportLinks = [
121136
{
122137
name: "Get thirdweb support",
@@ -221,7 +236,15 @@ export function Header() {
221236
<DocSearch variant="search" />
222237
</div>
223238

224-
<div className="xl:px-2">
239+
<div className="xl:px-1">
240+
<DropdownLinks
241+
links={apisLinks}
242+
onLinkClick={() => setShowBurgerMenu(false)}
243+
category="APIs"
244+
/>
245+
</div>
246+
247+
<div className="xl:px-1">
225248
<DropdownLinks
226249
links={supportLinks}
227250
onLinkClick={() => setShowBurgerMenu(false)}

0 commit comments

Comments
 (0)