Skip to content

Commit 0cf76d1

Browse files
committed
address review
1 parent 1ccd258 commit 0cf76d1

5 files changed

Lines changed: 683 additions & 41 deletions

File tree

apps/roam/src/components/settings/data/defaultRelationsBlockProps.ts

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
import type { DiscourseRelationSettings } from "~/components/settings/utils/zodSchema";
21
/* eslint-disable @typescript-eslint/naming-convention */ // This is for nodePosition keys
2+
import type { DiscourseRelationSettings } from "~/components/settings/utils/zodSchema";
33

44
// TODO: Delete the original default relations in data/defaultRelations.ts when fully migrated.
5-
const DEFAULT_RELATIONS_BLOCK_PROPS: DiscourseRelationSettings[] = [
6-
{
7-
id: "informs",
5+
const DEFAULT_RELATIONS_BLOCK_PROPS: Record<string, DiscourseRelationSettings> = {
6+
"_INF-rel": {
87
label: "Informs",
98
source: "_EVD-node",
109
destination: "_QUE-node",
@@ -27,8 +26,7 @@ const DEFAULT_RELATIONS_BLOCK_PROPS: DiscourseRelationSettings[] = [
2726
},
2827
],
2928
},
30-
{
31-
id: "supports",
29+
"_SUP-rel": {
3230
label: "Supports",
3331
source: "_EVD-node",
3432
destination: "_CLM-node",
@@ -82,8 +80,7 @@ const DEFAULT_RELATIONS_BLOCK_PROPS: DiscourseRelationSettings[] = [
8280
},
8381
],
8482
},
85-
{
86-
id: "opposes",
83+
"_OPP-rel": {
8784
label: "Opposes",
8885
source: "_EVD-node",
8986
destination: "_CLM-node",
@@ -137,6 +134,6 @@ const DEFAULT_RELATIONS_BLOCK_PROPS: DiscourseRelationSettings[] = [
137134
},
138135
],
139136
},
140-
];
137+
};
141138

142139
export default DEFAULT_RELATIONS_BLOCK_PROPS;

0 commit comments

Comments
 (0)