mirror of
https://github.com/cssgunc/compass.git
synced 2025-04-09 14:00:15 -04:00
removed DataPoint dependecy from User, Service, and Resource models as it was unnecesary
This commit is contained in:
parent
36b3f5802b
commit
062d7e20c2
|
@ -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}
|
||||
|
|
|
@ -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[],
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user