@@ -139,7 +139,7 @@ export default function MainLayout() {
This triggers Hilla to redirect to the correct login page (integrated or SSO) automatically.
Otherwise, SSO login would not be possible if we redirect to "/login" directly */
onPress={() => window.location.href = "/loginredirect"}>
-
@@ -147,7 +147,7 @@ export default function MainLayout() {
-
+
@@ -157,7 +157,7 @@ export default function MainLayout() {
Gameyfin {PackageJson.version}
Made with
-
+
by
grimsi and
diff --git a/app/src/main/frontend/views/PasswordResetView.tsx b/app/src/main/frontend/views/PasswordResetView.tsx
index 223bbea..dd39b08 100644
--- a/app/src/main/frontend/views/PasswordResetView.tsx
+++ b/app/src/main/frontend/views/PasswordResetView.tsx
@@ -5,11 +5,11 @@ import Input from "Frontend/components/general/input/Input";
import * as Yup from "yup";
import {PasswordResetEndpoint} from "Frontend/generated/endpoints";
import React, {useEffect, useState} from "react";
-import {Warning} from "@phosphor-icons/react";
-import TokenValidationResult from "Frontend/generated/org/gameyfin/app/shared/token/TokenValidationResult";
+import {WarningIcon} from "@phosphor-icons/react";
+import TokenValidationResult from "Frontend/generated/org/gameyfin/app/core/token/TokenValidationResult";
export default function PasswordResetView() {
- const [searchParams, setSearchParams] = useSearchParams();
+ const [searchParams] = useSearchParams();
const [token, setToken] = useState();
const navigate = useNavigate();
@@ -50,7 +50,7 @@ export default function PasswordResetView() {
}
return (
-
+
:
-
-
+
+
Invalid token
}
diff --git a/app/src/main/frontend/views/ProfileView.tsx b/app/src/main/frontend/views/ProfileView.tsx
index 4e1fa8d..80629a3 100644
--- a/app/src/main/frontend/views/ProfileView.tsx
+++ b/app/src/main/frontend/views/ProfileView.tsx
@@ -1,16 +1,16 @@
-import {Palette, User} from "@phosphor-icons/react";
+import { PaletteIcon, UserIcon } from "@phosphor-icons/react";
import withSideMenu from "Frontend/components/general/withSideMenu";
const menuItems = [
{
title: "My Profile",
url: "profile",
- icon:
+ icon:
},
{
title: "Appearance",
url: "appearance",
- icon:
+ icon:
},
/* TODO: Implement account self management
{
diff --git a/app/src/main/frontend/views/SearchView.tsx b/app/src/main/frontend/views/SearchView.tsx
index 28084cb..7d8f67a 100644
--- a/app/src/main/frontend/views/SearchView.tsx
+++ b/app/src/main/frontend/views/SearchView.tsx
@@ -1,5 +1,11 @@
import {Button, Input, Select, SelectedItems, SelectItem, Tooltip} from "@heroui/react";
-import {FunnelSimple, FunnelSimpleX, MagnifyingGlass, SortAscending, Star} from "@phosphor-icons/react";
+import {
+ FunnelSimpleIcon,
+ FunnelSimpleXIcon,
+ MagnifyingGlassIcon,
+ SortAscendingIcon,
+ StarIcon
+} from "@phosphor-icons/react";
import {useSnapshot} from "valtio/react";
import {gameState} from "Frontend/state/GameState";
import {libraryState} from "Frontend/state/LibraryState";
@@ -9,7 +15,7 @@ import {Fzf} from "fzf";
import GameDto from "Frontend/generated/org/gameyfin/app/games/dto/GameDto";
import LibraryDto from "Frontend/generated/org/gameyfin/app/libraries/dto/LibraryDto";
import CoverGrid from "Frontend/components/general/covers/CoverGrid";
-import {compoundRating, toTitleCase} from "Frontend/util/utils";
+import {compoundRating} from "Frontend/util/utils";
export default function SearchView() {
const games = useSnapshot(gameState).sortedAlphabetically as GameDto[];
@@ -249,7 +255,7 @@ export default function SearchView() {
const stars = [];
for (let i = 0; i < total; i++) {
stars.push(
-
+
);
}
return
@@ -261,13 +267,13 @@ export default function SearchView() {
}
+ startContent={
}
type="search"
value={searchTerm}
isClearable
@@ -276,7 +282,7 @@ export default function SearchView() {
/>
@@ -386,7 +392,7 @@ export default function SearchView() {
onSelectionChange={setSelectedGenres}
>
{Array.from(knownGenres).map((genre) => (
-
{toTitleCase(genre)}
+
{genre}
))}