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 { import { DownloadOutlined } from '@ant-design/icons';
CheckCircleOutlined,
DownloadOutlined,
ExclamationCircleOutlined,
} from '@ant-design/icons';
import { Button, Tag } from 'antd'; import { Button, Tag } from 'antd';
const FileCard = ({ file, isSelected, onClick }) => { const FileCard = ({ file, isSelected, onClick }) => {
@ -55,24 +51,51 @@ const FileCard = ({ file, isSelected, onClick }) => {
({extensionType}) ({extensionType})
</span> </span>
</div> </div>
<div style={{display: 'flex', justifyContent: 'space-between', alignItems:'center'}}> <div
style={{
display: 'flex',
justifyContent: 'space-between',
alignItems: 'center',
}}
>
{isRequired ? (
<>
{isReviewd ? (
<Tag <Tag
color={isRequired ? 'warning' : ''} color={'success'}
style={{ display: 'inline-block', fontWeight: 'bold' , textTransform: 'capitalize' }} 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} // bordered={false}
> >
Required: {isRequired.toString()} Not required
</Tag> </Tag>
)}
<Tag
color={isReviewd ? 'success' : 'warning'}
style={{ display: 'inline-block', fontWeight: 'bold', textTransform: 'capitalize' }}
// bordered={false}
>
Reviewed: {isReviewd.toString()}
</Tag>
</div> </div>
</div> </div>
<Button <Button