Skip to content

Commit

Permalink
Adjust to new BE
Browse files Browse the repository at this point in the history
  • Loading branch information
Matushl committed Nov 11, 2023
1 parent 6fa2040 commit a23fb71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/Profile/ProfileDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,9 @@ export const ProfileDetail: FC = () => {
return (
<Stack spacing={2}>
<ProfileLine label={'meno'} value={profile?.first_name + ' ' + profile?.last_name} />
{/* TODO: pockat na BE kym to posle v datach */}
<ProfileLine label={'e-mail'} value={'TODO'} />
<ProfileLine label={'e-mail'} value={profile?.email} />
<ProfileLine label={'škola'} value={profile?.school.verbose_name} />
{/* TODO: pockat na BE kym to posle v datach */}
<ProfileLine label={'ročník'} value={`${profile?.grade}`} />
<ProfileLine label={'ročník'} value={profile?.grade_name} />
<ProfileLine label={'tel. č.'} value={profile?.phone || '-'} />
<ProfileLine label={'tel. č. na rodiča'} value={profile?.parent_phone || '-'} />
</Stack>
Expand Down
2 changes: 2 additions & 0 deletions src/types/api/personal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,14 @@ export interface SchoolProfile {
export interface Profile {
first_name: string
last_name: string
email: string
nickname: string | null
school: SchoolProfile
phone: string | null
parent_phone: string | null
gdpr: boolean
grade: number
grade_name: string
is_student: boolean
has_school: boolean
school_id: number
Expand Down

0 comments on commit a23fb71

Please sign in to comment.