This repository has been archived by the owner on Sep 25, 2023. It is now read-only.
generated from trpc/examples-next-prisma-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added score update and finalized student profile view
- Loading branch information
1 parent
63ff384
commit 0307f12
Showing
23 changed files
with
233 additions
and
182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,18 +15,10 @@ import { useUser } from 'stores/user' | |
import { z } from 'zod' | ||
import { BasicsCard } from './BasicsCard' | ||
import { formatDate } from 'utils/helpers' | ||
import { CATEGORY_TYPES, GENDER_TYPES } from 'utils/constnts' | ||
|
||
interface Props {} | ||
|
||
const GENDER_TYPES = ['MALE', 'FEMALE', 'OTHER'].map((o) => ({ label: o, value: o })) | ||
const CATEGORY_TYPES = [ | ||
'General', | ||
'Scheduled Caste', | ||
'Scheduled Tribe', | ||
'Other Backward Classes', | ||
'Economically Weaker Section', | ||
].map((v) => ({ label: v, value: v })) | ||
|
||
const ADDRES_FIELDS: Array<keyof StudentAddress> = ['address', 'city', 'district', 'state', 'pin', 'country'] | ||
|
||
const initialAddress = { | ||
|
@@ -62,10 +54,8 @@ export const Basics: React.FC<Props> = () => { | |
name: '', | ||
category: '', | ||
gender: '', | ||
// TODO: it's here for now as student onboarding setup is not done | ||
// once we have that ready, basics data will be here by default from API | ||
mobileNumber: '8917300318', | ||
primaryEmail: '[email protected]', | ||
mobileNumber: '', | ||
primaryEmail: '', | ||
secondaryEmail: '', | ||
currentAddress: initialAddress, | ||
permanentAddress: initialAddress, | ||
|
@@ -159,11 +149,11 @@ export const Basics: React.FC<Props> = () => { | |
|
||
return ( | ||
<div className="flex flex-col gap-2"> | ||
<div className="text-lg font-medium leading-6 text-gray-900">Basic info</div> | ||
<div className="text-lg font-medium leading-6">Basic info</div> | ||
|
||
<BasicsCard studentBasics={studentBasics} onTrigger={handleTriggerDialog} /> | ||
|
||
<MDialog show={isDialog} onClose={() => null}> | ||
<MDialog show={isDialog} onClose={() => null} noEscape> | ||
<MForm | ||
form={form} | ||
onSubmit={handleSubmit((data) => { | ||
|
Oops, something went wrong.