fixing ui master
This commit is contained in:
@@ -13,8 +13,29 @@ import { deleteStatus, getAllStatuss } from '../../../../api/master-status';
|
||||
import TableList from '../../../../components/Global/TableList';
|
||||
|
||||
const columns = (showPreviewModal, showEditModal, showDeleteDialog) => [
|
||||
{ title: 'Number', dataIndex: 'status_number', key: 'status_number', width: '15%' },
|
||||
{
|
||||
title: 'No',
|
||||
key: 'no',
|
||||
width: '5%',
|
||||
align: 'center',
|
||||
render: (_, __, index) => index + 1,
|
||||
},
|
||||
{ title: 'Status Number', dataIndex: 'status_number', key: 'status_number', width: '15%' },
|
||||
{ title: 'Name', dataIndex: 'status_name', key: 'status_name', width: '25%' },
|
||||
{
|
||||
title: 'Color',
|
||||
dataIndex: 'status_color',
|
||||
key: 'status_color',
|
||||
align: 'center',
|
||||
width: '10%',
|
||||
render: (_, record) => (
|
||||
<Button
|
||||
type="text"
|
||||
style={{ backgroundColor: record.status_color }}
|
||||
onClick={() => showPreviewModal(record)}
|
||||
/>
|
||||
),
|
||||
},
|
||||
{
|
||||
title: 'Description',
|
||||
dataIndex: 'status_description',
|
||||
|
||||
Reference in New Issue
Block a user