mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-06-26 15:50:26 +01:00
Addressing code rabbit comments
Fixed some issues code rabbit raised Signed-off-by: Lance Chant <13349722+lancechant@users.noreply.github.com>
This commit is contained in:
@@ -50,7 +50,8 @@ function TVTabLayout() {
|
||||
const router = useRouter();
|
||||
|
||||
const currentTab = segments.find(isTabRoute);
|
||||
const atTabRoot = isTabRoute(segments[segments.length - 1] ?? "");
|
||||
const lastSegment = segments[segments.length - 1] ?? "";
|
||||
const atTabRoot = isTabRoute(lastSegment) || lastSegment === "index";
|
||||
|
||||
const tabs: TVNavBarTab[] = useMemo(
|
||||
() =>
|
||||
|
||||
Reference in New Issue
Block a user