mirror of
https://github.com/Radiquum/AniX.git
synced 2025-09-04 05:25: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: "Обзор",
|
||||
icon: "mdi--compass",
|
||||
href: "/discovery",
|
||||
auth: true,
|
||||
auth: false,
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -81,19 +81,27 @@ export const NavBarMobile = (props: { setIsSettingModalOpen: any }) => {
|
|||
</Link>
|
||||
);
|
||||
})}
|
||||
{userStore.isAuth && preferenceStore.flags.showFifthButton ?
|
||||
<Link
|
||||
href={FifthButton[preferenceStore.flags.showFifthButton].href}
|
||||
key={`navbar-mobile-${FifthButton[preferenceStore.flags.showFifthButton].title}`}
|
||||
className="flex flex-col items-center justify-center gap-1"
|
||||
>
|
||||
<span
|
||||
className={`iconify ${FifthButton[preferenceStore.flags.showFifthButton].icon} w-6 h-6`}
|
||||
></span>
|
||||
<span className="text-sm">
|
||||
{FifthButton[preferenceStore.flags.showFifthButton].title}
|
||||
</span>
|
||||
</Link>
|
||||
{preferenceStore.flags.showFifthButton ?
|
||||
<>
|
||||
{(
|
||||
!userStore.isAuth &&
|
||||
FifthButton[preferenceStore.flags.showFifthButton].auth
|
||||
) ?
|
||||
<></>
|
||||
: <Link
|
||||
href={FifthButton[preferenceStore.flags.showFifthButton].href}
|
||||
key={`navbar-mobile-${FifthButton[preferenceStore.flags.showFifthButton].title}`}
|
||||
className="flex flex-col items-center justify-center gap-1"
|
||||
>
|
||||
<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
|
||||
arrowIcon={false}
|
||||
|
|
|
@ -16,6 +16,12 @@ const NavbarItems = [
|
|||
href: "/",
|
||||
auth: false,
|
||||
},
|
||||
{
|
||||
title: "Обзор",
|
||||
icon: "mdi--compass",
|
||||
href: "/discovery",
|
||||
auth: false,
|
||||
},
|
||||
{
|
||||
title: "Поиск",
|
||||
icon: "mdi--search",
|
||||
|
@ -46,12 +52,6 @@ const NavbarItems = [
|
|||
href: "/history",
|
||||
auth: true,
|
||||
},
|
||||
{
|
||||
title: "Обзор",
|
||||
icon: "mdi--compass",
|
||||
href: "/discovery",
|
||||
auth: true,
|
||||
},
|
||||
];
|
||||
|
||||
export const NavBarPc = (props: { setIsSettingModalOpen: any }) => {
|
||||
|
|
|
@ -96,7 +96,7 @@ export const PosterWithStuff = (props: {
|
|||
</p>
|
||||
)}
|
||||
{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}
|
||||
</p>
|
||||
)}
|
||||
|
|
|
@ -40,7 +40,7 @@ export const usePreferencesStore = create<preferencesState>()(
|
|||
flags: {
|
||||
saveWatchHistory: true,
|
||||
showChangelog: true,
|
||||
showFifthButton: null,
|
||||
showFifthButton: "discovery",
|
||||
},
|
||||
params: {
|
||||
isFirstLaunch: true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue