mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-06 00:47:06 +00:00
fix: color for lookup and rollup icons
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user