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 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>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user