From 062d7e20c2f8b1b6c60f009ca20e3ad4f8c261f6 Mon Sep 17 00:00:00 2001 From: Nick A Date: Tue, 29 Oct 2024 14:16:08 -0400 Subject: [PATCH] removed DataPoint dependecy from User, Service, and Resource models as it was unnecesary --- compass/components/Table/RowOpenAction.tsx | 1 - compass/components/Table/Table.tsx | 2 +- compass/utils/models/Resource.ts | 3 +-- compass/utils/models/Service.ts | 3 +-- compass/utils/models/User.ts | 4 +--- 5 files changed, 4 insertions(+), 9 deletions(-) diff --git a/compass/components/Table/RowOpenAction.tsx b/compass/components/Table/RowOpenAction.tsx index 0279b22..3678630 100644 --- a/compass/components/Table/RowOpenAction.tsx +++ b/compass/components/Table/RowOpenAction.tsx @@ -19,7 +19,6 @@ export function RowOpenAction({ title, rowData, setData }:
{title} - {/* Added OnRowUpdate to drawer */} = { data: T[], diff --git a/compass/utils/models/Resource.ts b/compass/utils/models/Resource.ts index 84951ee..c6c029c 100644 --- a/compass/utils/models/Resource.ts +++ b/compass/utils/models/Resource.ts @@ -1,7 +1,6 @@ import { Program } from "./User"; -import DataPoint from "./DataPoint"; -export default interface Resource extends DataPoint { +export default interface Resource { id: number; created_at: Date; name: string; diff --git a/compass/utils/models/Service.ts b/compass/utils/models/Service.ts index 600f734..5093c5f 100644 --- a/compass/utils/models/Service.ts +++ b/compass/utils/models/Service.ts @@ -1,7 +1,6 @@ import { Program } from "./User"; -import DataPoint from "./DataPoint"; -export default interface Service extends DataPoint { +export default interface Service { id: number; created_at: Date; name: string; diff --git a/compass/utils/models/User.ts b/compass/utils/models/User.ts index 2f0abd3..0c55114 100644 --- a/compass/utils/models/User.ts +++ b/compass/utils/models/User.ts @@ -1,5 +1,3 @@ -import DataPoint from "./DataPoint"; - export enum Program { ECONOMIC = "ECONOMIC", DOMESTIC = "DOMESTIC", @@ -12,7 +10,7 @@ export enum Role { VOLUNTEER = "VOLUNTEER", } -export default interface User extends DataPoint { +export default interface User { id: number; uuid: string; username: string;