This is an automated email from the ASF dual-hosted git repository.

urfree pushed a commit to branch matrix-page
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git

commit bdbd0f47bcceadec407a554fd9c35bae52bed62b
Author: Li Li <[email protected]>
AuthorDate: Wed Apr 12 11:20:16 2023 +0800

    update
    
    Signed-off-by: Li Li <[email protected]>
---
 src/pages/matrix.js | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/pages/matrix.js b/src/pages/matrix.js
index f30c1d9814c..80e8975dfc4 100644
--- a/src/pages/matrix.js
+++ b/src/pages/matrix.js
@@ -22,6 +22,16 @@ const genColomns = () => {
       dataKey: _key(language),
       title: language === "Sub" ? "" : language,
       width: index > 1 ? 120 : 150,
+      dataGetter: ({ column, rowData }) => {
+        if (parseInt(rowData[column.dataKey]) === 0) {
+          return "🚫";
+        } else if (parseInt(rowData[column.dataKey]) === 1) {
+          return "✔️";
+        } else if (parseInt(rowData[column.dataKey]) === 2) {
+          return "✅";
+        }
+        return rowData[column.dataKey];
+      },
     };
   });
 };

Reply via email to