refactor: update 'Finance' title to 'Keuangan' in ExpenseIndex component and add autoComplete='off' to pricing fields in product create/edit forms

This commit is contained in:
Yoga Pangestu 2026-04-17 13:16:22 +07:00
parent ce947bc379
commit 0638cfbdf2
3 changed files with 11 additions and 1 deletions

View File

@ -447,7 +447,7 @@ export default function ExpenseIndex({ expenses }: { expenses: Expense[] }) {
ExpenseIndex.layout = {
breadcrumbs: [
{
title: 'Finance',
title: 'Keuangan',
},
],
};

View File

@ -220,6 +220,7 @@ export default function ProductCreate({ categories }: { categories: Category[] }
})
}}
placeholder="Rp 0"
autoComplete='off'
/>
{errors['prices.purchase'] && <p className="text-xs text-red-500">{errors['prices.purchase']}</p>}
</Field>
@ -240,6 +241,7 @@ export default function ProductCreate({ categories }: { categories: Category[] }
})
}}
placeholder="Rp 0"
autoComplete='off'
/>
{errors['prices.distributor'] && <p className="text-xs text-red-500">{errors['prices.distributor']}</p>}
</Field>
@ -260,6 +262,7 @@ export default function ProductCreate({ categories }: { categories: Category[] }
})
}}
placeholder="Rp 0"
autoComplete='off'
/>
{errors['prices.agent'] && <p className="text-xs text-red-500">{errors['prices.agent']}</p>}
</Field>
@ -280,6 +283,7 @@ export default function ProductCreate({ categories }: { categories: Category[] }
})
}}
placeholder="Rp 0"
autoComplete='off'
/>
{errors['prices.reseller'] && <p className="text-xs text-red-500">{errors['prices.reseller']}</p>}
</Field>
@ -300,6 +304,7 @@ export default function ProductCreate({ categories }: { categories: Category[] }
})
}}
placeholder="Rp 0"
autoComplete='off'
/>
{errors['prices.retail'] && <p className="text-xs text-red-500">{errors['prices.retail']}</p>}
</Field>

View File

@ -268,6 +268,7 @@ export default function ProductEdit({ product, categories }: { product: Product,
})
}}
placeholder="Rp 0"
autoComplete='off'
/>
{errors['prices.purchase'] && <p className="text-xs text-red-500">{errors['prices.purchase']}</p>}
</Field>
@ -288,6 +289,7 @@ export default function ProductEdit({ product, categories }: { product: Product,
})
}}
placeholder="Rp 0"
autoComplete='off'
/>
{errors['prices.distributor'] && <p className="text-xs text-red-500">{errors['prices.distributor']}</p>}
</Field>
@ -308,6 +310,7 @@ export default function ProductEdit({ product, categories }: { product: Product,
})
}}
placeholder="Rp 0"
autoComplete='off'
/>
{errors['prices.agent'] && <p className="text-xs text-red-500">{errors['prices.agent']}</p>}
</Field>
@ -328,6 +331,7 @@ export default function ProductEdit({ product, categories }: { product: Product,
})
}}
placeholder="Rp 0"
autoComplete='off'
/>
{errors['prices.reseller'] && <p className="text-xs text-red-500">{errors['prices.reseller']}</p>}
</Field>
@ -348,6 +352,7 @@ export default function ProductEdit({ product, categories }: { product: Product,
})
}}
placeholder="Rp 0"
autoComplete='off'
/>
{errors['prices.retail'] && <p className="text-xs text-red-500">{errors['prices.retail']}</p>}
</Field>