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:
parent
78f9a1f4e8
commit
ad053d6656
3 changed files with 56 additions and 28 deletions
|
@ -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 = '',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue