removed DataPoint dependecy from User, Service, and Resource models as it was unnecesary

This commit is contained in:
Nick A 2024-10-29 14:16:08 -04:00
parent 36b3f5802b
commit 062d7e20c2
5 changed files with 4 additions and 9 deletions

View File

@ -19,7 +19,6 @@ export function RowOpenAction<T extends DataPoint>({ title, rowData, setData }:
<div className="font-semibold group flex flex-row items-center justify-between pr-2"> <div className="font-semibold group flex flex-row items-center justify-between pr-2">
{title} {title}
<span> <span>
{/* Added OnRowUpdate to drawer */}
<Drawer <Drawer
title="My Drawer Title" title="My Drawer Title"
editableContent={pageContent} editableContent={pageContent}

View File

@ -17,8 +17,8 @@ import {
import { TableAction } from "./TableAction"; import { TableAction } from "./TableAction";
import { PlusIcon } from "@heroicons/react/24/solid"; import { PlusIcon } from "@heroicons/react/24/solid";
import { rankItem } from "@tanstack/match-sorter-utils"; import { rankItem } from "@tanstack/match-sorter-utils";
import DataPoint from "@/utils/models/DataPoint";
import { RowOptionMenu } from "./RowOptionMenu"; import { RowOptionMenu } from "./RowOptionMenu";
import DataPoint from "@/utils/models/DataPoint";
type TableProps<T extends DataPoint> = { type TableProps<T extends DataPoint> = {
data: T[], data: T[],

View File

@ -1,7 +1,6 @@
import { Program } from "./User"; import { Program } from "./User";
import DataPoint from "./DataPoint";
export default interface Resource extends DataPoint { export default interface Resource {
id: number; id: number;
created_at: Date; created_at: Date;
name: string; name: string;

View File

@ -1,7 +1,6 @@
import { Program } from "./User"; import { Program } from "./User";
import DataPoint from "./DataPoint";
export default interface Service extends DataPoint { export default interface Service {
id: number; id: number;
created_at: Date; created_at: Date;
name: string; name: string;

View File

@ -1,5 +1,3 @@
import DataPoint from "./DataPoint";
export enum Program { export enum Program {
ECONOMIC = "ECONOMIC", ECONOMIC = "ECONOMIC",
DOMESTIC = "DOMESTIC", DOMESTIC = "DOMESTIC",
@ -12,7 +10,7 @@ export enum Role {
VOLUNTEER = "VOLUNTEER", VOLUNTEER = "VOLUNTEER",
} }
export default interface User extends DataPoint { export default interface User {
id: number; id: number;
uuid: string; uuid: string;
username: string; username: string;