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