change image status

This commit is contained in:
phanphan 2024-06-07 08:24:58 +07:00
parent 4eb3e22cd3
commit 64c9804c98

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