From 17aa622da86830586e1eac2b946902b5601dd57a Mon Sep 17 00:00:00 2001 From: Liam Date: Sun, 22 Oct 2023 02:50:14 +0100 Subject: [PATCH] fix legacy props warning --- src/app/layout.tsx | 5 ++--- src/app/player/[id]/page.tsx | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 74f7af8..8d05d73 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -32,11 +32,10 @@ export default function RootLayout({
Background image
diff --git a/src/app/player/[id]/page.tsx b/src/app/player/[id]/page.tsx index dbadec8..44958c2 100644 --- a/src/app/player/[id]/page.tsx +++ b/src/app/player/[id]/page.tsx @@ -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 {