feat(FE-114): update MovementForm and RecordingForm to use inputPrefix and inputSuffix for improved input handling

This commit is contained in:
rstubryan
2025-10-25 14:24:51 +07:00
parent 189c152745
commit 135fc2d5d3
2 changed files with 4 additions and 4 deletions
@@ -1389,7 +1389,7 @@ const MovementForm = ({ type = 'add', initialValues }: MovementFormProps) => {
allowNegative={false}
thousandSeparator=','
decimalSeparator='.'
prefix="Rp "
inputPrefix="Rp"
{...isRepeaterInputError(
'deliveries',
'delivery_cost',
@@ -1413,7 +1413,7 @@ const MovementForm = ({ type = 'add', initialValues }: MovementFormProps) => {
allowNegative={false}
thousandSeparator=','
decimalSeparator='.'
prefix="Rp "
inputPrefix="Rp"
{...isRepeaterInputError(
'deliveries',
'delivery_cost_per_item',
@@ -799,7 +799,7 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
allowNegative={false}
thousandSeparator=','
decimalSeparator='.'
suffix=" gram"
inputSuffix="gram"
isError={
isRepeaterInputError('body_weights', 'weight', idx)
.isError
@@ -852,7 +852,7 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
allowNegative={false}
thousandSeparator=','
decimalSeparator='.'
suffix=" gram"
inputSuffix="gram"
isError={
isRepeaterInputError('body_weights', 'average_weight', idx)
.isError