mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
feat(FE-316): Show details table in success confirmation modal
This commit is contained in:
@@ -462,14 +462,68 @@ const UniformityTable = ({ refresh }: { refresh?: () => void }) => {
|
|||||||
<ConfirmationModal
|
<ConfirmationModal
|
||||||
ref={successModal.ref}
|
ref={successModal.ref}
|
||||||
type='success'
|
type='success'
|
||||||
text='Uniformity berhasil dibuat!'
|
text='Data Berhasil Ditambahkan'
|
||||||
closeOnBackdrop={false}
|
closeOnBackdrop={false}
|
||||||
primaryButton={{
|
primaryButton={{
|
||||||
text: 'OK',
|
text: 'Ok',
|
||||||
color: 'success',
|
color: 'primary',
|
||||||
onClick: handleSuccessModalClose,
|
onClick: handleSuccessModalClose,
|
||||||
}}
|
}}
|
||||||
/>
|
>
|
||||||
|
<div className='flex flex-col gap-4 mt-4'>
|
||||||
|
<Table
|
||||||
|
data={[
|
||||||
|
{
|
||||||
|
id: 'tanggal',
|
||||||
|
label: 'Tanggal',
|
||||||
|
value: '28 Desember 2025',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'lokasi-farm',
|
||||||
|
label: 'Lokasi Farm',
|
||||||
|
value: 'Farm A',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'project-flock',
|
||||||
|
label: 'Project Flock',
|
||||||
|
value: 'Flock 2025-01',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'kandang',
|
||||||
|
label: 'Kandang',
|
||||||
|
value: 'Kandang 1',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'file-uniformity',
|
||||||
|
label: 'File Uniformity',
|
||||||
|
value: 'uniformity_data.xlsx',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'status',
|
||||||
|
label: 'Status',
|
||||||
|
value: 'Disetujui',
|
||||||
|
},
|
||||||
|
]}
|
||||||
|
columns={[
|
||||||
|
{
|
||||||
|
accessorKey: 'label',
|
||||||
|
header: 'Label',
|
||||||
|
cell: (props) => props.row.original.label,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
accessorKey: 'value',
|
||||||
|
header: 'Value',
|
||||||
|
cell: (props) => <span>{props.row.original.value}</span>,
|
||||||
|
},
|
||||||
|
]}
|
||||||
|
pageSize={6}
|
||||||
|
className={{
|
||||||
|
containerClassName: 'mb-0',
|
||||||
|
paginationClassName: 'hidden',
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</ConfirmationModal>
|
||||||
</Card>
|
</Card>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user