mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix(boards-list): hide Multiboards section when filtering for worksafe boards
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user