Skip to content

The open alternative to Salesforce, designed for AI.

GH-3110 Update relation icon on data model settings (#3114)

Deepak Kumarde3d955040cd
diff --git a/packages/twenty-front/src/modules/settings/data-model/constants/relationTypes.ts b/packages/twenty-front/src/modules/settings/data-model/constants/relationTypes.ts
index f7e5df873d8..588f5db8c28 100644
--- a/packages/twenty-front/src/modules/settings/data-model/constants/relationTypes.ts
+++ b/packages/twenty-front/src/modules/settings/data-model/constants/relationTypes.ts
@@ -1,4 +1,4 @@
-import { IconRelationOneToMany, IconRelationOneToOne } from '@/ui/display/icon';
+import { IconLayersLinked, IconRelationOneToOne } from '@/ui/display/icon';
import { IconComponent } from '@/ui/display/icon/types/IconComponent';
import { RelationMetadataType } from '~/generated-metadata/graphql';
@@ -17,7 +17,7 @@ export const relationTypes: Record<
> = {
[RelationMetadataType.OneToMany]: {
label: 'Has many',
- Icon: IconRelationOneToMany,
+ Icon: IconLayersLinked,
imageSrc: OneToManySvg,
},
[RelationMetadataType.OneToOne]: {
@@ -27,7 +27,7 @@ export const relationTypes: Record<
},
MANY_TO_ONE: {
label: 'Belongs to one',
- Icon: IconRelationOneToMany,
+ Icon: IconLayersLinked,
imageSrc: OneToManySvg,
isImageFlipped: true,
},
diff --git a/packages/twenty-front/src/modules/ui/display/icon/index.ts b/packages/twenty-front/src/modules/ui/display/icon/index.ts
index 04612c9de69..7fa10d40c96 100644
--- a/packages/twenty-front/src/modules/ui/display/icon/index.ts
+++ b/packages/twenty-front/src/modules/ui/display/icon/index.ts
@@ -64,6 +64,7 @@ export {
IconInfoCircle,
IconKey,
IconLanguage,
+ IconLayersLinked,
IconLayoutKanban,
IconLayoutSidebarLeftCollapse,
IconLayoutSidebarRightCollapse,