{
- setSettingsDialogOpen(true);
- setSettingsTabValue(2);
- }}
style={{
borderRadius: "100px",
gap: "0.85em",
}}
+ disabled
>
dns
Change Server
diff --git a/src/components/carousel/carousel.scss b/src/components/carousel/carousel.scss
index 7d39f6f..42280bc 100644
--- a/src/components/carousel/carousel.scss
+++ b/src/components/carousel/carousel.scss
@@ -89,6 +89,15 @@
border-radius: 8px;
object-fit: cover;
box-shadow: 0 2px 8px rgba(0,0,0,0.2);
+
+ &.placeholder {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ background: rgb(100 100 100 / 0.1);
+ color: rgb(200 200 200 / 0.7);
+ font-size: 2rem;
+ }
}
& > div {
diff --git a/src/components/carousel/index.tsx b/src/components/carousel/index.tsx
index b24da91..b1effe6 100644
--- a/src/components/carousel/index.tsx
+++ b/src/components/carousel/index.tsx
@@ -113,14 +113,16 @@ const Carousel = ({
>
))}
diff --git a/src/components/carousel/tickers.tsx b/src/components/carousel/tickers.tsx
index 52d6fb8..b99213c 100644
--- a/src/components/carousel/tickers.tsx
+++ b/src/components/carousel/tickers.tsx
@@ -1,13 +1,16 @@
+import type { BaseItemKind } from "@jellyfin/sdk/lib/generated-client";
import { Typography } from "@mui/material";
import React from "react";
+import { getTypeIcon } from "../utils/iconsCollection";
type CarouselTickersProps = {
- imageUrl?: string;
+ imageUrl?: string | undefined | null;
itemName: string;
itemYear: string;
onTickerClick: (index: number) => void;
index: number;
isActive: boolean;
+ itemType: BaseItemKind;
};
const CarouselTickers = React.memo(
@@ -18,6 +21,7 @@ const CarouselTickers = React.memo(
onTickerClick,
index,
isActive,
+ itemType,
}: CarouselTickersProps) => {
const handleClick = React.useCallback(() => {
onTickerClick(index);
@@ -28,12 +32,18 @@ const CarouselTickers = React.memo(
className={`carousel-ticker${isActive ? " active" : ""}`}
onClick={handleClick}
>
-
+ {imageUrl ? (
+
+ ) : (
+
+ {" "}
+ {getTypeIcon(itemType)}
+
+ )}
{itemName}
diff --git a/src/components/userAvatarMenu/index.tsx b/src/components/userAvatarMenu/index.tsx
index f2a6103..443eccc 100644
--- a/src/components/userAvatarMenu/index.tsx
+++ b/src/components/userAvatarMenu/index.tsx
@@ -17,10 +17,6 @@ import React, {
import { delUser } from "@/utils/storage/user";
import { useApiInContext } from "@/utils/store/api";
import { useCentralStore } from "@/utils/store/central";
-import {
- setSettingsDialogOpen,
- setSettingsTabValue,
-} from "@/utils/store/settings";
export const UserAvatarMenu = () => {
const api = useApiInContext((s) => s.api);
@@ -105,18 +101,6 @@ export const UserAvatarMenu = () => {
Logout
-