|
|
|
@ -85,21 +85,25 @@ class index extends Component {
|
|
|
|
|
</Tooltip> |
|
|
|
|
</>, |
|
|
|
|
}, |
|
|
|
|
...(this.state.role_name === 'Super Admin' ? [ |
|
|
|
|
{ |
|
|
|
|
title: this.state.role_name === 'Super Admin' ? "Company Name" : null, |
|
|
|
|
title: "Company Name", |
|
|
|
|
dataIndex: "join_first_company_name", |
|
|
|
|
key: "join_first_company_name", |
|
|
|
|
render: (text, record) => { |
|
|
|
|
return this.state.role_name === 'Super Admin' ? ( |
|
|
|
|
<span>{record.join_first_company_name}</span> |
|
|
|
|
) : null; |
|
|
|
|
return <span>{ record.join_first_company_name }</span>; |
|
|
|
|
} |
|
|
|
|
}] : []) |
|
|
|
|
, |
|
|
|
|
{ title: 'Type Paket', dataIndex: 'type_paket', key: 'type_paket', className: "nowrap", |
|
|
|
|
render: (text,record) => { |
|
|
|
|
return <span>{ !["Basic","Free"].includes(record.type_paket) ? 'Enterprise' : record.type_paket}</span> |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
{ title: 'Type Paket', dataIndex: 'type_paket', key: 'type_paket', className: "nowrap" }, |
|
|
|
|
{ |
|
|
|
|
title: this.props.t('Expired Date'), dataIndex: 'exp_ospro', key: 'exp_ospro', |
|
|
|
|
render: (text,record) => { |
|
|
|
|
return moment(record.exp_ospro).format('DD MMMM, YYYY'); |
|
|
|
|
return <span>{ moment(record.exp_ospro).format('DD MMMM, YYYY') }</span>; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
]; |
|
|
|
|