@antscorp/antsomi-ui 1.3.5-beta.953 → 1.3.5-beta.954
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { FIELD_DATA_TYPE } from './constants';
|
|
3
3
|
import { Icon } from '../Icon';
|
|
4
|
+
import { BinaryIcon } from '../../icons';
|
|
4
5
|
export const IconField = (props) => {
|
|
5
6
|
const { dataType } = props;
|
|
6
7
|
switch (dataType) {
|
|
@@ -18,6 +19,9 @@ export const IconField = (props) => {
|
|
|
18
19
|
case FIELD_DATA_TYPE.DATE_TIME.name:
|
|
19
20
|
case FIELD_DATA_TYPE.DATE_TIME.value:
|
|
20
21
|
return _jsx(Icon, { type: "icon-ants-calendar-v2", style: { color: '#56b261' } });
|
|
22
|
+
case FIELD_DATA_TYPE.BINARY.name:
|
|
23
|
+
case FIELD_DATA_TYPE.BINARY.value:
|
|
24
|
+
return _jsx(BinaryIcon, { style: { color: '#51a5d5' } });
|
|
21
25
|
default:
|
|
22
26
|
return _jsx(Icon, { type: "icon-ants-ABC", style: { color: '#56b261' } });
|
|
23
27
|
}
|