From 6f91d1f8e63bfc8394e71db0637e783fac79d500 Mon Sep 17 00:00:00 2001 From: aadalal <57609353+AaDalal@users.noreply.github.com> Date: Wed, 12 Jun 2024 22:31:18 -0400 Subject: [PATCH] moves types from plan to shared-components --- frontend/plan/types.ts | 14 ++------------ frontend/shared-components/src/types.ts | 12 ++++++++++++ 2 files changed, 14 insertions(+), 12 deletions(-) create mode 100644 frontend/shared-components/src/types.ts diff --git a/frontend/plan/types.ts b/frontend/plan/types.ts index 2cf2a2b40..29f410f7c 100644 --- a/frontend/plan/types.ts +++ b/frontend/plan/types.ts @@ -1,3 +1,5 @@ +import { type User } from "pcx-shared-components/src/types"; + export enum School { SEAS = "SEAS", WHARTON = "WH", @@ -123,11 +125,6 @@ export interface MeetingBlock { id?: number; } -export interface Profile { - email: string | null; - phone: string | null; -} - export interface Requirement { id: string; code: string; @@ -168,13 +165,6 @@ export interface Schedule { updated_at: string; } -export interface User { - username: string; - first_name: string; - last_name: string; - profile: Profile; -} - export interface Friendship { sender: User; recipient: User; diff --git a/frontend/shared-components/src/types.ts b/frontend/shared-components/src/types.ts new file mode 100644 index 000000000..6706b078f --- /dev/null +++ b/frontend/shared-components/src/types.ts @@ -0,0 +1,12 @@ + +export interface Profile { + email: string | null; + phone: string | null; +} + +export interface User { + username: string; + first_name: string; + last_name: string; + profile: Profile; +} \ No newline at end of file