update student pages,

This commit is contained in:
louiscklaw
2025-04-24 13:19:21 +08:00
parent a3d2ee57f7
commit 92040c6efb
27 changed files with 598 additions and 63 deletions

View File

@@ -104,7 +104,7 @@ export function CustomerCreateForm(): React.JSX.Element {
// Use standard create method from db/Customers/Create
const record = await createCustomer(values);
toast.success('Customer created');
router.push(paths.dashboard.students.details(record.id));
router.push(paths.dashboard.students.view(record.id));
} catch (err) {
logger.error(err);
toast.error('Failed to create customer');

View File

@@ -44,7 +44,7 @@ function columns(handleDeleteClick: (testId: string) => void): ColumnDef<Student
<Link
color="inherit"
component={RouterLink}
href={paths.dashboard.students.details(row.id)}
href={paths.dashboard.students.view(row.id)}
sx={{ whiteSpace: 'nowrap' }}
variant="subtitle2"
>
@@ -143,7 +143,7 @@ function columns(handleDeleteClick: (testId: string) => void): ColumnDef<Student
//
color="secondary"
component={RouterLink}
href={paths.dashboard.students.details(row.id)}
href={paths.dashboard.students.view(row.id)}
>
<PencilSimpleIcon size={24} />
</LoadingButton>