mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-05 07:07:11 +00:00
refactor: show proper field icon
Signed-off-by: Pranav C <pranavxc@gmail.com>
This commit is contained in:
@@ -60,6 +60,8 @@ import DurationIcon from '~icons/mdi/timer-outline'
|
||||
const renderIcon = (column: ColumnType, abstractType: any) => {
|
||||
if (isPrimaryKey(column)) {
|
||||
return KeyIcon
|
||||
} else if (isSpecificDBType(column)) {
|
||||
return SpecificDBTypeIcon
|
||||
} else if (isJSON(column)) {
|
||||
return JSONIcon
|
||||
} else if (isDate(column, abstractType)) {
|
||||
@@ -102,8 +104,6 @@ const renderIcon = (column: ColumnType, abstractType: any) => {
|
||||
return NumericIcon
|
||||
} else if (isString(column, abstractType)) {
|
||||
return StringIcon
|
||||
} else if (isSpecificDBType(column)) {
|
||||
return SpecificDBTypeIcon
|
||||
} else {
|
||||
return GenericIcon
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user