fix: color for lookup and rollup icons

This commit is contained in:
DarkPhoenix2704
2025-02-17 13:10:50 +00:00
parent 1616782daa
commit b486069fc8
8 changed files with 49 additions and 52 deletions

View File

@@ -31,7 +31,6 @@ export const renderIcon = (column: ColumnType, relationColumn?: ColumnType) => {
default:
return { icon: iconMap.cellButton, color: 'text-grey' }
}
return { icon: iconMap.cellButton, color: 'text-grey' }
case UITypes.QrCode:
return { icon: iconMap.cellQrCode, color: 'text-grey' }
case UITypes.Barcode:
@@ -39,25 +38,25 @@ export const renderIcon = (column: ColumnType, relationColumn?: ColumnType) => {
case UITypes.Lookup:
switch ((relationColumn?.colOptions as LinkToAnotherRecordType)?.type) {
case RelationTypes.MANY_TO_MANY:
return { icon: iconMap.cellLookup, color: 'text-pink-500' }
return { icon: iconMap.cellLookup, color: 'text-pink-500', hex: '#FC3AC6' }
case RelationTypes.HAS_MANY:
return { icon: iconMap.cellLookup, color: 'text-orange-500' }
return { icon: iconMap.cellLookup, color: 'text-orange-500', hex: '#FA8231' }
case RelationTypes.BELONGS_TO:
return { icon: iconMap.cellLookup, color: 'text-blue-500' }
return { icon: iconMap.cellLookup, color: 'text-blue-500', hex: '#36BFFF' }
case RelationTypes.ONE_TO_ONE:
return { icon: iconMap.cellLookup, color: 'text-purple-500' }
return { icon: iconMap.cellLookup, color: 'text-purple-500', hex: '#7D26CD' }
}
return { icon: iconMap.cellLookup, color: 'text-grey' }
case UITypes.Rollup:
switch ((relationColumn?.colOptions as LinkToAnotherRecordType)?.type) {
case RelationTypes.MANY_TO_MANY:
return { icon: iconMap.cellRollup, color: 'text-pink-500' }
return { icon: iconMap.cellRollup, color: 'text-pink-500', hex: '#FC3AC6' }
case RelationTypes.HAS_MANY:
return { icon: iconMap.cellRollup, color: 'text-orange-500' }
return { icon: iconMap.cellRollup, color: 'text-orange-500', hex: '#FA8231' }
case RelationTypes.BELONGS_TO:
return { icon: iconMap.cellRollup, color: 'text-blue-500' }
return { icon: iconMap.cellRollup, color: 'text-blue-500', hex: '#36BFFF' }
case RelationTypes.ONE_TO_ONE:
return { icon: iconMap.cellRollup, color: 'text-purple-500' }
return { icon: iconMap.cellRollup, color: 'text-purple-500', hex: '#7D26CD' }
}
return { icon: iconMap.cellRollup, color: 'text-grey' }
case UITypes.Count: