Add TablePage component
This commit is contained in:
@@ -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 = '',
|
||||
|
||||
Reference in New Issue
Block a user