website refactor
This commit is contained in:
@@ -40,7 +40,7 @@ export interface PageWrapperProps<TData> {
|
||||
/** Retry function for errors */
|
||||
retry?: () => void;
|
||||
/** Template component that receives the data */
|
||||
Template: React.ComponentType<{ data: TData }>;
|
||||
Template: React.ComponentType<{ viewData: TData }>;
|
||||
/** Loading configuration */
|
||||
loading?: PageWrapperLoadingConfig;
|
||||
/** Error configuration */
|
||||
@@ -162,7 +162,7 @@ export function PageWrapper<TData>({
|
||||
// 4. Success State - Render Template with data
|
||||
return (
|
||||
<React.Fragment>
|
||||
<Template data={data} />
|
||||
<Template viewData={data} />
|
||||
{children}
|
||||
</React.Fragment>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user