Skip to content

Commit

Permalink
Updating tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiehewitt15 committed Nov 7, 2023
1 parent 74e51c8 commit 62626c7
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions src/components/TabsFile/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -488,23 +488,21 @@ export default function TabsFile({
<TabList className={styles.tabList}>
{items?.length > 0 &&
items.map((item, index) => {
if (item.type !== 'filecoin') {
return (
<Tab
className={`${styles.tab} ${
isHidden ? styles.tabHidden : null
}`}
key={`tab_${items[tabIndex].type}_${index}`}
onClick={
handleTabChange
? () => handleTabChange(item.type)
: undefined
}
>
{addEllipsesToText(item.type, 10)}
</Tab>
)
}
return (
<Tab
className={`${styles.tab} ${
isHidden ? styles.tabHidden : null
}`}
key={`tab_${items[tabIndex].type}_${index}`}
onClick={
handleTabChange
? () => handleTabChange(item.type)
: undefined
}
>
{addEllipsesToText(item.type, 10)}
</Tab>
)
})}
</TabList>
</div>
Expand Down

0 comments on commit 62626c7

Please sign in to comment.