Skip to content

Commit

Permalink
moves types from plan to shared-components
Browse files Browse the repository at this point in the history
  • Loading branch information
AaDalal committed Jun 13, 2024
1 parent c84615a commit 6f91d1f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
14 changes: 2 additions & 12 deletions frontend/plan/types.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { type User } from "pcx-shared-components/src/types";

export enum School {
SEAS = "SEAS",
WHARTON = "WH",
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
12 changes: 12 additions & 0 deletions frontend/shared-components/src/types.ts
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit 6f91d1f

Please sign in to comment.