diff --git a/frontends/nextjs/src/components/molecules/overlay/Dialog.tsx b/frontends/nextjs/src/components/molecules/overlay/Dialog.tsx index 405d68081..83fcd001b 100644 --- a/frontends/nextjs/src/components/molecules/overlay/Dialog.tsx +++ b/frontends/nextjs/src/components/molecules/overlay/Dialog.tsx @@ -31,9 +31,9 @@ const Dialog = forwardRef( } return ( - + -
{children}
+
{children}
) @@ -138,8 +138,8 @@ const DialogDescription = forwardRef< { children: ReactNode; className?: string } >(({ children, className, ...props }, ref) => { return ( - - {children} + + {children} ) }) @@ -153,7 +153,6 @@ const DialogClose = forwardRef< if (children) { return ( } onClick={onClick} className="dialog-close" > diff --git a/frontends/nextjs/src/data/form/ValidationSummary.tsx b/frontends/nextjs/src/data/form/ValidationSummary.tsx index 590cdb475..3d706ccf0 100644 --- a/frontends/nextjs/src/data/form/ValidationSummary.tsx +++ b/frontends/nextjs/src/data/form/ValidationSummary.tsx @@ -1,6 +1,7 @@ -import { Alert, AlertTitle, List, ListItem, ListItemText } from '@mui/material' import type { ReactNode } from 'react' +import { Alert, AlertTitle, List, ListItem, ListItemText } from '@/fakemui' + /** * Props for {@link ValidationSummary}. * @@ -34,12 +35,12 @@ export function ValidationSummary({ if (!errors.length) return null return ( - + {showTitle ? {title} : null} - + {errors.map((error, index) => ( - - + + ))} diff --git a/frontends/nextjs/src/data/table/Body.tsx b/frontends/nextjs/src/data/table/Body.tsx index 082fb504c..094bd3c2c 100644 --- a/frontends/nextjs/src/data/table/Body.tsx +++ b/frontends/nextjs/src/data/table/Body.tsx @@ -1,6 +1,7 @@ -import { TableBody, TableCell, TableRow } from '@mui/material' import type { ReactNode } from 'react' +import { TableBody, TableCell, TableRow } from '@/fakemui' + import { EmptyState } from './EmptyState' import type { DataTableColumn } from './types' @@ -37,7 +38,7 @@ export function Body({ key={rowId} hover={Boolean(onRowClick)} onClick={handleClick} - sx={onRowClick ? { cursor: 'pointer' } : undefined} + className={onRowClick ? 'table-row--clickable' : ''} > {columns.map(column => { const content = column.render @@ -45,7 +46,7 @@ export function Body({ : (row as Record)[column.key] return ( - + {content ?? '—'} ) diff --git a/frontends/nextjs/src/data/table/EmptyState.tsx b/frontends/nextjs/src/data/table/EmptyState.tsx index e2e7bc986..521c59ffb 100644 --- a/frontends/nextjs/src/data/table/EmptyState.tsx +++ b/frontends/nextjs/src/data/table/EmptyState.tsx @@ -1,6 +1,7 @@ -import { Stack, TableCell, TableRow, Typography } from '@mui/material' import type { ReactNode } from 'react' +import { Stack, TableCell, TableRow, Typography } from '@/fakemui' + /** * Props for the {@link EmptyState} table row. * @@ -29,7 +30,7 @@ interface EmptyStateProps { export function EmptyState({ colSpan, message = 'No data to display', action }: EmptyStateProps) { return ( - + {message} {action ? (