website refactor

This commit is contained in:
2026-01-19 02:14:53 +01:00
parent 489c5f7858
commit a8731e6937
70 changed files with 2908 additions and 2423 deletions

View File

@@ -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>
);

View File

@@ -1,7 +1,7 @@
'use client';
import React from 'react';
import { PageWrapper, PageWrapperProps } from '@/ui/PageWrapper';
import { PageWrapper, PageWrapperProps } from './PageWrapper';
/**
* Stateful Page Wrapper - CLIENT SIDE ONLY
@@ -56,4 +56,4 @@ export function StatefulPageWrapper<TData>({
}
// Re-export types for convenience
export type { PageWrapperProps, PageWrapperLoadingConfig, PageWrapperErrorConfig, PageWrapperEmptyConfig } from '@/ui/PageWrapper';
export type { PageWrapperProps, PageWrapperLoadingConfig, PageWrapperErrorConfig, PageWrapperEmptyConfig } from './PageWrapper';