Student Registeration CRUD & Listing
This commit is contained in:
15
src/app/register/page.tsx
Normal file
15
src/app/register/page.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import { prisma } from '@/infrastructure/db/prisma';
|
||||
import { RegisterForm } from './RegisterForm';
|
||||
import styles from './register.module.css';
|
||||
|
||||
export default async function RegisterPage() {
|
||||
const branches = await prisma.branch.findMany({
|
||||
select: { id: true, name: true }
|
||||
});
|
||||
|
||||
return (
|
||||
<div className={styles.container}>
|
||||
<RegisterForm branches={branches} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user