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">
{title}
<span>
{/* Added OnRowUpdate to drawer */}
<Drawer
title="My Drawer Title"
editableContent={pageContent}

View File

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

View File

@ -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;

View File

@ -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;

View File

@ -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;