|
|
|
@ -47,7 +47,7 @@ export const columnsSets = (t, colorize = true) => [
|
|
|
|
|
const ifData = isNotEmpty(_changed.adult_cost) || isNotEmpty(_changed.unit_id) || isNotEmpty(_changed.currency);
|
|
|
|
|
const preValue =
|
|
|
|
|
ifCompare && ifData ? (
|
|
|
|
|
<div className='text-muted line-through '>{`${_changed.adult_cost} ${_changed.currency || currency} / ${t(`PriceUnit.${_changed.unit_id || unit_id}`)}`}</div>
|
|
|
|
|
<div className='text-muted line-through '>{`${_changed.adult_cost || adult_cost} ${_changed.currency || currency} / ${t(`PriceUnit.${_changed.unit_id || unit_id}`)}`}</div>
|
|
|
|
|
) : null;
|
|
|
|
|
const editCls = ifCompare && ifData ? 'text-danger' : '';
|
|
|
|
|
return (
|
|
|
|
@ -68,7 +68,7 @@ export const columnsSets = (t, colorize = true) => [
|
|
|
|
|
const ifData = isNotEmpty(_changed.child_cost) || isNotEmpty(_changed.unit_id) || isNotEmpty(_changed.currency);
|
|
|
|
|
const preValue =
|
|
|
|
|
ifCompare && ifData ? (
|
|
|
|
|
<div className='text-muted line-through '>{`${_changed.child_cost} ${_changed.currency || currency} / ${t(`PriceUnit.${_changed.unit_id || unit_id}`)}`}</div>
|
|
|
|
|
<div className='text-muted line-through '>{`${_changed.child_cost || child_cost} ${_changed.currency || currency} / ${t(`PriceUnit.${_changed.unit_id || unit_id}`)}`}</div>
|
|
|
|
|
) : null;
|
|
|
|
|
const editCls = ifCompare && ifData ? 'text-danger' : '';
|
|
|
|
|
return (
|
|
|
|
|