Add change server option #202

This commit is contained in:
Prayag Prajapati committed 2023-10-27 17:07:32 +05:30
1 parent cdd1a0a85b
commit 09bcee155c
8 files changed
+270 -34

No files matched your search

+1
View File
@@ -90,6 +90,7 @@ export const AppBar = () => {
if (
location.pathname.includes("login") ||
location.pathname.includes("setup") ||
location.pathname.includes("server") ||
location.pathname.includes("player") ||
location.pathname === "/"
) {
@@ -1,5 +1,5 @@
/** @format */
import React from "react";
import { useQuery } from "@tanstack/react-query";
import { CardScroller } from "../../cardScroller/cardScroller";
import { Card } from "../../card/card";
@@ -47,7 +47,7 @@ export const LatestMediaSection = ({ latestMediaLib }) => {
displayCards={8}
title={"Latest " + latestMediaLib[1]}
>
{data.data.map((item, index) => {
{data.data.map((item) => {
return (
<Card
key={item.Id}
@@ -64,7 +64,7 @@ export const LatestMediaSection = ({ latestMediaLib }) => {
? `S${item.ParentIndexNumber}:E${item.IndexNumber} - ${item.Name}`
: item.Type == BaseItemKind.Series
? `${item.ProductionYear} - ${
!!item.EndDate
item.EndDate
? new Date(
item.EndDate,
).toLocaleString(
+1
View File
@@ -94,6 +94,7 @@ export const SideMenu = () => {
if (
location.pathname.includes("login") ||
location.pathname.includes("setup") ||
location.pathname.includes("server") ||
location.pathname.includes("player") ||
location.pathname === "/"
) {