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

View File

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

View File

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