Merge pull request #134 from SDSRV-IDP/factory/review

change file status
This commit is contained in:
Đỗ Xuân Tân 2024-06-12 14:12:24 +07:00 committed by GitHub Enterprise
commit 5fd0c3c461

View File

@ -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})
</span>
</div>
<div style={{display: 'flex', justifyContent: 'space-between', alignItems:'center'}}>
<Tag
color={isRequired ? 'warning' : ''}
style={{ display: 'inline-block', fontWeight: 'bold' , textTransform: 'capitalize' }}
// bordered={false}
>
Required: {isRequired.toString()}
</Tag>
<Tag
color={isReviewd ? 'success' : 'warning'}
style={{ display: 'inline-block', fontWeight: 'bold', textTransform: 'capitalize' }}
// bordered={false}
>
Reviewed: {isReviewd.toString()}
</Tag>
<div
style={{
display: 'flex',
justifyContent: 'space-between',
alignItems: 'center',
}}
>
{isRequired ? (
<>
{isReviewd ? (
<Tag
color={'success'}
style={{
display: 'inline-block',
fontWeight: 'bold',
textTransform: 'capitalize',
}}
>
Reviewd
</Tag>
) : (
<Tag
color={'warning'}
style={{
display: 'inline-block',
fontWeight: 'bold',
textTransform: 'capitalize',
}}
>
Not reviewed
</Tag>
)}
</>
) : (
<Tag
style={{
display: 'inline-block',
fontWeight: 'bold',
textTransform: 'capitalize',
}}
// bordered={false}
>
Not required
</Tag>
)}
</div>
</div>
<Button