From a23fb71c657fa3d14162e580a5b304370b5bab59 Mon Sep 17 00:00:00 2001 From: matushl Date: Fri, 10 Nov 2023 18:35:20 +0100 Subject: [PATCH] Adjust to new BE --- src/components/Profile/ProfileDetail.tsx | 6 ++---- src/types/api/personal.ts | 2 ++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/Profile/ProfileDetail.tsx b/src/components/Profile/ProfileDetail.tsx index ed11d9cd..31cf4547 100644 --- a/src/components/Profile/ProfileDetail.tsx +++ b/src/components/Profile/ProfileDetail.tsx @@ -36,11 +36,9 @@ export const ProfileDetail: FC = () => { return ( - {/* TODO: pockat na BE kym to posle v datach */} - + - {/* TODO: pockat na BE kym to posle v datach */} - + diff --git a/src/types/api/personal.ts b/src/types/api/personal.ts index 58530dbf..795fb75e 100644 --- a/src/types/api/personal.ts +++ b/src/types/api/personal.ts @@ -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