mirror of
https://github.com/Radiquum/AniX.git
synced 2025-09-05 22:15:36 +05:00
anix: show discovery button by default
This commit is contained in:
parent
a615af836b
commit
28b7ea2d6c
4 changed files with 30 additions and 22 deletions
|
@ -54,7 +54,7 @@ const FifthButton = {
|
||||||
title: "Обзор",
|
title: "Обзор",
|
||||||
icon: "mdi--compass",
|
icon: "mdi--compass",
|
||||||
href: "/discovery",
|
href: "/discovery",
|
||||||
auth: true,
|
auth: false,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -81,19 +81,27 @@ export const NavBarMobile = (props: { setIsSettingModalOpen: any }) => {
|
||||||
</Link>
|
</Link>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
{userStore.isAuth && preferenceStore.flags.showFifthButton ?
|
{preferenceStore.flags.showFifthButton ?
|
||||||
<Link
|
<>
|
||||||
href={FifthButton[preferenceStore.flags.showFifthButton].href}
|
{(
|
||||||
key={`navbar-mobile-${FifthButton[preferenceStore.flags.showFifthButton].title}`}
|
!userStore.isAuth &&
|
||||||
className="flex flex-col items-center justify-center gap-1"
|
FifthButton[preferenceStore.flags.showFifthButton].auth
|
||||||
>
|
) ?
|
||||||
<span
|
<></>
|
||||||
className={`iconify ${FifthButton[preferenceStore.flags.showFifthButton].icon} w-6 h-6`}
|
: <Link
|
||||||
></span>
|
href={FifthButton[preferenceStore.flags.showFifthButton].href}
|
||||||
<span className="text-sm">
|
key={`navbar-mobile-${FifthButton[preferenceStore.flags.showFifthButton].title}`}
|
||||||
{FifthButton[preferenceStore.flags.showFifthButton].title}
|
className="flex flex-col items-center justify-center gap-1"
|
||||||
</span>
|
>
|
||||||
</Link>
|
<span
|
||||||
|
className={`iconify ${FifthButton[preferenceStore.flags.showFifthButton].icon} w-6 h-6`}
|
||||||
|
></span>
|
||||||
|
<span className="text-sm">
|
||||||
|
{FifthButton[preferenceStore.flags.showFifthButton].title}
|
||||||
|
</span>
|
||||||
|
</Link>
|
||||||
|
}
|
||||||
|
</>
|
||||||
: ""}
|
: ""}
|
||||||
<Dropdown
|
<Dropdown
|
||||||
arrowIcon={false}
|
arrowIcon={false}
|
||||||
|
|
|
@ -16,6 +16,12 @@ const NavbarItems = [
|
||||||
href: "/",
|
href: "/",
|
||||||
auth: false,
|
auth: false,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: "Обзор",
|
||||||
|
icon: "mdi--compass",
|
||||||
|
href: "/discovery",
|
||||||
|
auth: false,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: "Поиск",
|
title: "Поиск",
|
||||||
icon: "mdi--search",
|
icon: "mdi--search",
|
||||||
|
@ -46,12 +52,6 @@ const NavbarItems = [
|
||||||
href: "/history",
|
href: "/history",
|
||||||
auth: true,
|
auth: true,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
title: "Обзор",
|
|
||||||
icon: "mdi--compass",
|
|
||||||
href: "/discovery",
|
|
||||||
auth: true,
|
|
||||||
},
|
|
||||||
];
|
];
|
||||||
|
|
||||||
export const NavBarPc = (props: { setIsSettingModalOpen: any }) => {
|
export const NavBarPc = (props: { setIsSettingModalOpen: any }) => {
|
||||||
|
|
|
@ -96,7 +96,7 @@ export const PosterWithStuff = (props: {
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
{props.title_original && (
|
{props.title_original && (
|
||||||
<p className="hidden mt-2 text-sm leading-none text-gray-300 sm:block md:text-base line-clamp-2">
|
<p className="hidden mt-2 text-sm leading-none text-gray-300 sm:[display:-webkit-box] md:text-base line-clamp-2">
|
||||||
{props.title_original}
|
{props.title_original}
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
|
|
|
@ -40,7 +40,7 @@ export const usePreferencesStore = create<preferencesState>()(
|
||||||
flags: {
|
flags: {
|
||||||
saveWatchHistory: true,
|
saveWatchHistory: true,
|
||||||
showChangelog: true,
|
showChangelog: true,
|
||||||
showFifthButton: null,
|
showFifthButton: "discovery",
|
||||||
},
|
},
|
||||||
params: {
|
params: {
|
||||||
isFirstLaunch: true,
|
isFirstLaunch: true,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue