fix legacy props warning
All checks were successful
deploy / deploy (push) Successful in 58s

This commit is contained in:
Lee 2023-10-22 02:50:14 +01:00
parent e9c80143ff
commit 17aa622da8
2 changed files with 2 additions and 4 deletions

@ -32,11 +32,10 @@ export default function RootLayout({
<body className={font.className}> <body className={font.className}>
<div className="fixed left-0 top-0 z-0 h-full w-full blur-sm"> <div className="fixed left-0 top-0 z-0 h-full w-full blur-sm">
<Image <Image
className="object-fill object-center"
alt="Background image" alt="Background image"
src={"/assets/background.webp"} src={"/assets/background.webp"}
layout="fill" fill
objectFit="cover"
objectPosition="center"
quality={100} quality={100}
/> />
</div> </div>

@ -58,7 +58,6 @@ export default function Player({ params }: { params: { id: string } }) {
let sortType: SortType; let sortType: SortType;
const sortTypeString = searchParams.get("sort"); const sortTypeString = searchParams.get("sort");
if (sortTypeString == null) { if (sortTypeString == null) {
// todo: check settings to get last used sort type
sortType = sortType =
useSettingsStore.getState().lastUsedSortType || DEFAULT_SORT_TYPE; useSettingsStore.getState().lastUsedSortType || DEFAULT_SORT_TYPE;
} else { } else {