From 28b7ea2d6cd36cff4aa84f47eed63b4dd7cf3ed2 Mon Sep 17 00:00:00 2001 From: Radiquum Date: Wed, 27 Aug 2025 19:35:26 +0500 Subject: [PATCH] anix: show discovery button by default --- app/components/Navbar/NavBarMobile.tsx | 36 +++++++++++-------- app/components/Navbar/NavBarPc.tsx | 12 +++---- .../ReleasePoster/PosterWithStuff.tsx | 2 +- app/store/preferences.ts | 2 +- 4 files changed, 30 insertions(+), 22 deletions(-) diff --git a/app/components/Navbar/NavBarMobile.tsx b/app/components/Navbar/NavBarMobile.tsx index e0be96b..3937c86 100644 --- a/app/components/Navbar/NavBarMobile.tsx +++ b/app/components/Navbar/NavBarMobile.tsx @@ -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 }) => { ); })} - {userStore.isAuth && preferenceStore.flags.showFifthButton ? - - - - {FifthButton[preferenceStore.flags.showFifthButton].title} - - + {preferenceStore.flags.showFifthButton ? + <> + {( + !userStore.isAuth && + FifthButton[preferenceStore.flags.showFifthButton].auth + ) ? + <> + : + + + {FifthButton[preferenceStore.flags.showFifthButton].title} + + + } + : ""} { diff --git a/app/components/ReleasePoster/PosterWithStuff.tsx b/app/components/ReleasePoster/PosterWithStuff.tsx index 4482a5a..c4049ac 100644 --- a/app/components/ReleasePoster/PosterWithStuff.tsx +++ b/app/components/ReleasePoster/PosterWithStuff.tsx @@ -96,7 +96,7 @@ export const PosterWithStuff = (props: {

)} {props.title_original && ( -

+

{props.title_original}

)} diff --git a/app/store/preferences.ts b/app/store/preferences.ts index 36c9cdf..056038b 100644 --- a/app/store/preferences.ts +++ b/app/store/preferences.ts @@ -40,7 +40,7 @@ export const usePreferencesStore = create()( flags: { saveWatchHistory: true, showChangelog: true, - showFifthButton: null, + showFifthButton: "discovery", }, params: { isFirstLaunch: true,