mirror of
https://gitlab.com/foxixus/neomovies.git
synced 2025-10-28 18:08:49 +05:00
Update 9 files
- /src/api.ts - /src/app/admin/login/AdminLoginClient.tsx - /src/app/admin/login/page.tsx - /src/app/api/auth/[...nextauth]/route.ts - /src/components/MovieCard.tsx - /src/components/MoviePlayer.tsx - /src/components/Navbar.tsx - /src/lib/api.ts - /src/lib/auth.ts
This commit is contained in:
@@ -87,7 +87,7 @@ const Rating = styled.div`
|
||||
right: 8px;
|
||||
padding: 4px 8px;
|
||||
border-radius: 6px;
|
||||
font-size: 12px;
|
||||
font-size: 17px;
|
||||
font-weight: 600;
|
||||
color: white;
|
||||
`;
|
||||
|
||||
@@ -210,7 +210,7 @@ export default function MoviePlayer({ id, title, poster, imdbId }: MoviePlayerPr
|
||||
<PlayerContainer>
|
||||
{settings.defaultPlayer === 'lumex' && imdbId ? (
|
||||
<StyledIframe
|
||||
src={`https://p.lumex.site/k1GbtOF2cX6p?&imdb_id=${imdbId}`}
|
||||
src={`${process.env.NEXT_PUBLIC_LUMEX_URL}?imdb_id=${imdbId}`}
|
||||
allow="fullscreen"
|
||||
loading="lazy"
|
||||
/>
|
||||
|
||||
@@ -216,7 +216,7 @@ const AuthButtons = styled.div`
|
||||
export default function Navbar() {
|
||||
const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false);
|
||||
const [isSearchOpen, setIsSearchOpen] = useState(false);
|
||||
const { data: session } = useSession();
|
||||
const { data: session, status } = useSession();
|
||||
const pathname = usePathname();
|
||||
const router = useRouter();
|
||||
|
||||
@@ -225,6 +225,11 @@ export default function Navbar() {
|
||||
return null;
|
||||
}
|
||||
|
||||
// Если сессия загружается, показываем плейсхолдер
|
||||
if (status === 'loading') {
|
||||
return null;
|
||||
}
|
||||
|
||||
const handleNavigation = (href: string, onClick?: () => void) => {
|
||||
if (onClick) {
|
||||
onClick();
|
||||
|
||||
Reference in New Issue
Block a user