Enabled the ability to close the home tab (#1765)

This commit is contained in:
JustinKol
2024-03-13 16:32:59 -04:00
committed by GitHub
parent 4c74525b5d
commit f881f7fd2f
4 changed files with 25 additions and 7 deletions

View File

@@ -182,11 +182,9 @@ function TabNav({ tab, active, tabKind }: { tab?: Tab; active: boolean; tabKind?
)}
</span>
<span className="tabNavText">{useObservable(tab?.tabTitle || getReactTabTitle())}</span>
{tabKind !== ReactTabKind.Home && (
<span className="tabIconSection">
<CloseButton tab={tab} active={active} hovering={hovering} tabKind={tabKind} />
</span>
)}
<span className="tabIconSection">
<CloseButton tab={tab} active={active} hovering={hovering} tabKind={tabKind} />
</span>
</div>
</span>
</li>