mirror of
https://github.com/cssgunc/compass.git
synced 2025-04-20 18:40:17 -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">
|
<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}
|
||||||
|
|
|
@ -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[],
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user