deck icon & media grid

This commit is contained in:
Martti Malmi
2023-12-06 10:13:01 +02:00
parent a50aaba752
commit 8e77535a6a
11 changed files with 62 additions and 33 deletions

View File

@ -91,6 +91,8 @@ export default function NavSidebar({ narrow = false }) {
</span>
);
const showDeck = CONFIG.showDeck || !(CONFIG.deckSubKind !== undefined && (sub?.type ?? -1) < CONFIG.deckSubKind);
return (
<div className={className}>
<LogoHeader showText={!narrow} />
@ -104,7 +106,7 @@ export default function NavSidebar({ narrow = false }) {
if ((CONFIG.hideFromNavbar ?? []).includes(a.link)) {
return false;
}
if (a.link == "/deck" && CONFIG.deckSubKind !== undefined && (sub?.type ?? -1) < CONFIG.deckSubKind) {
if (a.link == "/deck" && !showDeck) {
return false;
}
return true;