This commit is contained in:
TannedCung 2024-06-12 14:13:23 +07:00
commit 23bd648deb

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