Skip to content

Commit 1caf6dd

Browse files
authored
changeset / fmt (#8671)
1 parent 19204e4 commit 1caf6dd

3 files changed

Lines changed: 26 additions & 8 deletions

File tree

.changeset/old-donkeys-send.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"thirdweb": patch
3+
---
4+
5+
fix walletconnect not working on berachain and unallowlisted chains

apps/portal/src/components/Layouts/DocLayout.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,7 @@ export function DocLayout(props: DocLayoutProps) {
4646
"hidden xl:flex",
4747
)}
4848
>
49-
<DocSidebar
50-
{...props.sideBar}
51-
header={props.sidebarHeader}
52-
/>
49+
<DocSidebar {...props.sideBar} header={props.sidebarHeader} />
5350
</aside>
5451
)}
5552
<div className="sticky top-sticky-top-height z-stickyMobileSidebar border-b bg-card/50 backdrop-blur-xl p-4 xl:hidden -mx-4">

apps/portal/src/components/others/Sidebar.tsx

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,23 @@ export function DocSidebar(props: ReferenceSideBarProps) {
6868
{props.links.map((link, i) => (
6969
// biome-ignore lint/suspicious/noArrayIndexKey: TODO - fix this
7070
<li key={i}>
71-
<SidebarItem link={link} onLinkClick={props.onLinkClick} isFirst={i === 0} />
71+
<SidebarItem
72+
link={link}
73+
onLinkClick={props.onLinkClick}
74+
isFirst={i === 0}
75+
/>
7276
</li>
7377
))}
7478
</ul>
7579
</div>
7680
);
7781
}
7882

79-
function SidebarItem(props: { link: SidebarLink; onLinkClick?: () => void, isFirst: boolean }) {
83+
function SidebarItem(props: {
84+
link: SidebarLink;
85+
onLinkClick?: () => void;
86+
isFirst: boolean;
87+
}) {
8088
const pathname = usePathname();
8189

8290
if ("separator" in props.link) {
@@ -175,7 +183,11 @@ function DocSidebarNonCollapsible(props: {
175183
return (
176184
// biome-ignore lint/suspicious/noArrayIndexKey: TODO - fix this
177185
<li key={i}>
178-
<SidebarItem link={link} onLinkClick={props.onLinkClick} isFirst={i === 0} />
186+
<SidebarItem
187+
link={link}
188+
onLinkClick={props.onLinkClick}
189+
isFirst={i === 0}
190+
/>
179191
</li>
180192
);
181193
})}
@@ -240,7 +252,11 @@ function DocSidebarCategory(props: {
240252
return (
241253
// biome-ignore lint/suspicious/noArrayIndexKey: TODO - fix this
242254
<li key={i}>
243-
<SidebarItem link={link} onLinkClick={props.onLinkClick} isFirst={i === 0} />
255+
<SidebarItem
256+
link={link}
257+
onLinkClick={props.onLinkClick}
258+
isFirst={i === 0}
259+
/>
244260
</li>
245261
);
246262
})}

0 commit comments

Comments
 (0)