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

GH-3110 update relation icon on data model settings with IconLayersLinked
This commit is contained in:
Deepak Kumar 2023-12-22 00:44:04 +05:30 committed by GitHub
parent 794cf87b43
commit de3d955040
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -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,
},

View File

@ -64,6 +64,7 @@ export {
IconInfoCircle,
IconKey,
IconLanguage,
IconLayersLinked,
IconLayoutKanban,
IconLayoutSidebarLeftCollapse,
IconLayoutSidebarRightCollapse,