fix(boards-list): hide Multiboards section when filtering for worksafe boards

This commit is contained in:
plebeius
2025-11-13 12:23:59 +01:00
parent e91a0494ae
commit 594be88210
+15 -12
View File
@@ -101,6 +101,7 @@ const BoardsList = ({ multisub }: { multisub: MultisubSubplebbit[] }) => {
const showOther = showAll || showWorksafeOnly;
const showMisc = showAll || showNsfwOnly;
const showAdult = showAll || showNsfwOnly;
const showMultiboards = showAll || showNsfwOnly;
return (
<div className={styles.box}>
@@ -605,18 +606,20 @@ const BoardsList = ({ multisub }: { multisub: MultisubSubplebbit[] }) => {
)}
{/* Column 6: Meta */}
<div className={styles.boardsColumn}>
<h3>Multiboards</h3>
<NSFWBadge />
<ul>
<li>
<Link to='/all'>All 5chan Directories</Link>
</li>
<li>
<Link to='/subs'>Subscriptions</Link>
</li>
</ul>
</div>
{showMultiboards && (
<div className={styles.boardsColumn}>
<h3>Multiboards</h3>
<NSFWBadge />
<ul>
<li>
<Link to='/all'>All 5chan Directories</Link>
</li>
<li>
<Link to='/subs'>Subscriptions</Link>
</li>
</ul>
</div>
)}
</div>
</div>
);