From 64c9804c98292b28e89d820d1f9d98989f12446d Mon Sep 17 00:00:00 2001 From: phanphan Date: Fri, 7 Jun 2024 08:24:58 +0700 Subject: [PATCH] change image status --- cope2n-fe/src/pages/reviews2/FileCard.tsx | 69 +++++++++++++++-------- 1 file changed, 46 insertions(+), 23 deletions(-) diff --git a/cope2n-fe/src/pages/reviews2/FileCard.tsx b/cope2n-fe/src/pages/reviews2/FileCard.tsx index 79efa76..3c7d715 100644 --- a/cope2n-fe/src/pages/reviews2/FileCard.tsx +++ b/cope2n-fe/src/pages/reviews2/FileCard.tsx @@ -1,8 +1,4 @@ -import { - CheckCircleOutlined, - DownloadOutlined, - ExclamationCircleOutlined, -} from '@ant-design/icons'; +import { DownloadOutlined } from '@ant-design/icons'; import { Button, Tag } from 'antd'; const FileCard = ({ file, isSelected, onClick }) => { @@ -55,24 +51,51 @@ const FileCard = ({ file, isSelected, onClick }) => { ({extensionType}) -
- - Required: {isRequired.toString()} - - - - - Reviewed: {isReviewd.toString()} - - +
+ {isRequired ? ( + <> + {isReviewd ? ( + + Reviewd + + ) : ( + + Not reviewed + + )} + + ) : ( + + Not required + + )}