@@ -41,7 +41,7 @@ const Card = ({
return (
{displayColumnName && (
{column.name}
)}
-
+
);
})}
diff --git a/frontend/src/metadata/views/kanban/boards/board/formatter.js b/frontend/src/metadata/views/kanban/boards/board/formatter.js
index 856f39cabbd..75932d34ef4 100644
--- a/frontend/src/metadata/views/kanban/boards/board/formatter.js
+++ b/frontend/src/metadata/views/kanban/boards/board/formatter.js
@@ -1,4 +1,5 @@
import React from 'react';
+import PropTypes from 'prop-types';
import CellFormatter from '../../../../components/cell-formatter';
import { CellType } from '../../../../constants';
import { Utils } from '../../../../../utils/utils';
@@ -13,7 +14,7 @@ const SPECIAL_FILE_ICON = [
'word.png',
];
-const Formatter = ({ value, column }) => {
+const Formatter = ({ value, column, record }) => {
let className = '';
if (column.type === CellType.FILE_NAME && value) {
@@ -23,7 +24,13 @@ const Formatter = ({ value, column }) => {
}
}
- return (
);
+ return ();
+};
+
+Formatter.propTypes = {
+ value: PropTypes.any,
+ column: PropTypes.object,
+ record: PropTypes.object,
};
export default Formatter;
diff --git a/frontend/src/metadata/views/kanban/boards/board/header/index.js b/frontend/src/metadata/views/kanban/boards/board/header/index.js
index e93443d097a..4b31f13a63c 100644
--- a/frontend/src/metadata/views/kanban/boards/board/header/index.js
+++ b/frontend/src/metadata/views/kanban/boards/board/header/index.js
@@ -3,9 +3,9 @@ import PropTypes from 'prop-types';
import CellFormatter from '../../../../../components/cell-formatter';
import { gettext } from '../../../../../../utils/constants';
import OpMenu from './op-menu';
+import { CellType } from '../../../../../constants';
import './index.css';
-import { CellType } from '../../../../../constants';
const Header = ({ readonly, haveFreezed, value, groupByColumn, onDelete, onFreezed, onUnFreezed }) => {
const [active, setActive] = useState(false);
diff --git a/frontend/src/metadata/views/table/table-main/records/record/cell/formatter.js b/frontend/src/metadata/views/table/table-main/records/record/cell/formatter.js
index e0e0cac281d..68dc9e536ab 100644
--- a/frontend/src/metadata/views/table/table-main/records/record/cell/formatter.js
+++ b/frontend/src/metadata/views/table/table-main/records/record/cell/formatter.js
@@ -15,7 +15,7 @@ const Formatter = ({ isCellSelected, isDir, field, value, onChange, record }) =>
if (type === CellType.RATE && cellEditAble) {
return ();
}
- return ();
+ return ();
};
Formatter.propTypes = {