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 showOther = showAll || showWorksafeOnly;
const showMisc = showAll || showNsfwOnly; const showMisc = showAll || showNsfwOnly;
const showAdult = showAll || showNsfwOnly; const showAdult = showAll || showNsfwOnly;
const showMultiboards = showAll || showNsfwOnly;
return ( return (
<div className={styles.box}> <div className={styles.box}>
@@ -605,18 +606,20 @@ const BoardsList = ({ multisub }: { multisub: MultisubSubplebbit[] }) => {
)} )}
{/* Column 6: Meta */} {/* Column 6: Meta */}
<div className={styles.boardsColumn}> {showMultiboards && (
<h3>Multiboards</h3> <div className={styles.boardsColumn}>
<NSFWBadge /> <h3>Multiboards</h3>
<ul> <NSFWBadge />
<li> <ul>
<Link to='/all'>All 5chan Directories</Link> <li>
</li> <Link to='/all'>All 5chan Directories</Link>
<li> </li>
<Link to='/subs'>Subscriptions</Link> <li>
</li> <Link to='/subs'>Subscriptions</Link>
</ul> </li>
</div> </ul>
</div>
)}
</div> </div>
</div> </div>
); );