Skip to content

Commit 09a184f

Browse files
committed
refactor: improve tab title reference assignment in Tabs component
- Updated the ref assignment for tab titles to use a block statement for better readability and consistency in the Tabs.tsx file.
1 parent 2b37c3c commit 09a184f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/frontend/src/ui/Tabs.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ const Tabs: React.FC<TabsProps> = ({
357357
children={
358358
<div className="tab-content">
359359
<span
360-
ref={el => titleRefs.current[tab.id] = el}
360+
ref={el => { titleRefs.current[tab.id] = el; }}
361361
className={`tab-title ${overflowMap[tab.id] ? 'tab-title-overflow' : ''}`}
362362
>
363363
{selectedTabId === tab.id && displayPadLoadingIndicator ? "..." : tab.title}
@@ -379,7 +379,7 @@ const Tabs: React.FC<TabsProps> = ({
379379
children={
380380
<div className="tab-content">
381381
<span
382-
ref={el => titleRefs.current[tab.id] = el}
382+
ref={el => { titleRefs.current[tab.id] = el; }}
383383
className={`tab-title ${overflowMap[tab.id] ? 'tab-title-overflow' : ''}`}
384384
>
385385
{tab.title}

0 commit comments

Comments
 (0)