changeset / fmt (#8671)

This commit is contained in:
Firekeeper
2026-02-13 23:34:21 +07:00
committed by GitHub
parent 19204e4654
commit 1caf6dd460
3 changed files with 26 additions and 8 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"thirdweb": patch
---
fix walletconnect not working on berachain and unallowlisted chains
@@ -46,10 +46,7 @@ export function DocLayout(props: DocLayoutProps) {
"hidden xl:flex",
)}
>
<DocSidebar
{...props.sideBar}
header={props.sidebarHeader}
/>
<DocSidebar {...props.sideBar} header={props.sidebarHeader} />
</aside>
)}
<div className="sticky top-sticky-top-height z-stickyMobileSidebar border-b bg-card/50 backdrop-blur-xl p-4 xl:hidden -mx-4">
+20 -4
View File
@@ -68,7 +68,11 @@ export function DocSidebar(props: ReferenceSideBarProps) {
{props.links.map((link, i) => (
// biome-ignore lint/suspicious/noArrayIndexKey: TODO - fix this
<li key={i}>
<SidebarItem link={link} onLinkClick={props.onLinkClick} isFirst={i === 0} />
<SidebarItem
link={link}
onLinkClick={props.onLinkClick}
isFirst={i === 0}
/>
</li>
))}
</ul>
@@ -76,7 +80,11 @@ export function DocSidebar(props: ReferenceSideBarProps) {
);
}
function SidebarItem(props: { link: SidebarLink; onLinkClick?: () => void, isFirst: boolean }) {
function SidebarItem(props: {
link: SidebarLink;
onLinkClick?: () => void;
isFirst: boolean;
}) {
const pathname = usePathname();
if ("separator" in props.link) {
@@ -175,7 +183,11 @@ function DocSidebarNonCollapsible(props: {
return (
// biome-ignore lint/suspicious/noArrayIndexKey: TODO - fix this
<li key={i}>
<SidebarItem link={link} onLinkClick={props.onLinkClick} isFirst={i === 0} />
<SidebarItem
link={link}
onLinkClick={props.onLinkClick}
isFirst={i === 0}
/>
</li>
);
})}
@@ -240,7 +252,11 @@ function DocSidebarCategory(props: {
return (
// biome-ignore lint/suspicious/noArrayIndexKey: TODO - fix this
<li key={i}>
<SidebarItem link={link} onLinkClick={props.onLinkClick} isFirst={i === 0} />
<SidebarItem
link={link}
onLinkClick={props.onLinkClick}
isFirst={i === 0}
/>
</li>
);
})}