1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Add TablePage component

This commit is contained in:
Bill Thornton 2024-08-29 13:50:26 -04:00
parent 78f9a1f4e8
commit ad053d6656
3 changed files with 56 additions and 28 deletions

View file

@ -2,7 +2,7 @@ import React, { type FC, type PropsWithChildren, type HTMLAttributes, useEffect,
import viewManager from './viewManager/viewManager';
type PageProps = {
type CustomPageProps = {
id: string, // id is required for libraryMenu
title?: string,
isBackButtonEnabled?: boolean,
@ -12,11 +12,13 @@ type PageProps = {
backDropType?: string,
};
export type PageProps = CustomPageProps & HTMLAttributes<HTMLDivElement>;
/**
* Page component that handles hiding active non-react views, triggering the required events for
* navigation and appRouter state updates, and setting the correct classes and data attributes.
*/
const Page: FC<PropsWithChildren<PageProps & HTMLAttributes<HTMLDivElement>>> = ({
const Page: FC<PropsWithChildren<PageProps>> = ({
children,
id,
className = '',