relationships except for Cardinality edit

This commit is contained in:
Guy Ben-Aharon
2024-08-14 18:21:00 +03:00
parent c33cb5b177
commit 9da29bf7d5
11 changed files with 373 additions and 106 deletions

View File

@@ -57,6 +57,7 @@ export interface ChartDBContext {
addRelationship: (relationship: DBRelationship) => void;
getRelationship: (id: string) => DBRelationship | null;
removeRelationship: (id: string) => void;
removeRelationships: (...ids: string[]) => void;
updateRelationship: (
id: string,
relationship: Partial<DBRelationship>
@@ -100,4 +101,5 @@ export const chartDBContext = createContext<ChartDBContext>({
getRelationship: emptyFn,
removeRelationship: emptyFn,
updateRelationship: emptyFn,
removeRelationships: emptyFn,
});