Skip to content

Commit 46a2608

Browse files
committed
chore: format
1 parent ce3bee2 commit 46a2608

File tree

1 file changed

+20
-11
lines changed

1 file changed

+20
-11
lines changed

packages/gitbook/src/components/SiteSectionTabs/SiteSectionTabs.tsx

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -86,17 +86,26 @@ export function SiteSectionTabs(props: {
8686
const { id, urls, title, icon } = section;
8787
const isActive = index === currentIndex;
8888
return (
89-
<Tab
90-
active={isActive}
91-
key={id}
92-
label={title}
93-
href={urls.published ?? ''}
94-
ref={isActive ? currentTabRef : null}
95-
icon={icon ? (
96-
<SectionIcon className={tcls("text-inherit opacity-8", isActive && "text-inherit opacity-10")} section={section} />
97-
) : null}
98-
/>
99-
)})}
89+
<Tab
90+
active={isActive}
91+
key={id}
92+
label={title}
93+
href={urls.published ?? ''}
94+
ref={isActive ? currentTabRef : null}
95+
icon={
96+
icon ? (
97+
<SectionIcon
98+
className={tcls(
99+
'text-inherit opacity-8',
100+
isActive && 'text-inherit opacity-10',
101+
)}
102+
section={section}
103+
/>
104+
) : null
105+
}
106+
/>
107+
);
108+
})}
100109
</div>
101110
{/* A container for a pseudo element for active tab indicator. A container is needed so we can set
102111
a relative position without breaking the z-index of other parts of the header. */}

0 commit comments

Comments
 (0)