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:
parent
ce947bc379
commit
0638cfbdf2
@ -447,7 +447,7 @@ export default function ExpenseIndex({ expenses }: { expenses: Expense[] }) {
|
|||||||
ExpenseIndex.layout = {
|
ExpenseIndex.layout = {
|
||||||
breadcrumbs: [
|
breadcrumbs: [
|
||||||
{
|
{
|
||||||
title: 'Finance',
|
title: 'Keuangan',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|||||||
@ -220,6 +220,7 @@ export default function ProductCreate({ categories }: { categories: Category[] }
|
|||||||
})
|
})
|
||||||
}}
|
}}
|
||||||
placeholder="Rp 0"
|
placeholder="Rp 0"
|
||||||
|
autoComplete='off'
|
||||||
/>
|
/>
|
||||||
{errors['prices.purchase'] && <p className="text-xs text-red-500">{errors['prices.purchase']}</p>}
|
{errors['prices.purchase'] && <p className="text-xs text-red-500">{errors['prices.purchase']}</p>}
|
||||||
</Field>
|
</Field>
|
||||||
@ -240,6 +241,7 @@ export default function ProductCreate({ categories }: { categories: Category[] }
|
|||||||
})
|
})
|
||||||
}}
|
}}
|
||||||
placeholder="Rp 0"
|
placeholder="Rp 0"
|
||||||
|
autoComplete='off'
|
||||||
/>
|
/>
|
||||||
{errors['prices.distributor'] && <p className="text-xs text-red-500">{errors['prices.distributor']}</p>}
|
{errors['prices.distributor'] && <p className="text-xs text-red-500">{errors['prices.distributor']}</p>}
|
||||||
</Field>
|
</Field>
|
||||||
@ -260,6 +262,7 @@ export default function ProductCreate({ categories }: { categories: Category[] }
|
|||||||
})
|
})
|
||||||
}}
|
}}
|
||||||
placeholder="Rp 0"
|
placeholder="Rp 0"
|
||||||
|
autoComplete='off'
|
||||||
/>
|
/>
|
||||||
{errors['prices.agent'] && <p className="text-xs text-red-500">{errors['prices.agent']}</p>}
|
{errors['prices.agent'] && <p className="text-xs text-red-500">{errors['prices.agent']}</p>}
|
||||||
</Field>
|
</Field>
|
||||||
@ -280,6 +283,7 @@ export default function ProductCreate({ categories }: { categories: Category[] }
|
|||||||
})
|
})
|
||||||
}}
|
}}
|
||||||
placeholder="Rp 0"
|
placeholder="Rp 0"
|
||||||
|
autoComplete='off'
|
||||||
/>
|
/>
|
||||||
{errors['prices.reseller'] && <p className="text-xs text-red-500">{errors['prices.reseller']}</p>}
|
{errors['prices.reseller'] && <p className="text-xs text-red-500">{errors['prices.reseller']}</p>}
|
||||||
</Field>
|
</Field>
|
||||||
@ -300,6 +304,7 @@ export default function ProductCreate({ categories }: { categories: Category[] }
|
|||||||
})
|
})
|
||||||
}}
|
}}
|
||||||
placeholder="Rp 0"
|
placeholder="Rp 0"
|
||||||
|
autoComplete='off'
|
||||||
/>
|
/>
|
||||||
{errors['prices.retail'] && <p className="text-xs text-red-500">{errors['prices.retail']}</p>}
|
{errors['prices.retail'] && <p className="text-xs text-red-500">{errors['prices.retail']}</p>}
|
||||||
</Field>
|
</Field>
|
||||||
|
|||||||
@ -268,6 +268,7 @@ export default function ProductEdit({ product, categories }: { product: Product,
|
|||||||
})
|
})
|
||||||
}}
|
}}
|
||||||
placeholder="Rp 0"
|
placeholder="Rp 0"
|
||||||
|
autoComplete='off'
|
||||||
/>
|
/>
|
||||||
{errors['prices.purchase'] && <p className="text-xs text-red-500">{errors['prices.purchase']}</p>}
|
{errors['prices.purchase'] && <p className="text-xs text-red-500">{errors['prices.purchase']}</p>}
|
||||||
</Field>
|
</Field>
|
||||||
@ -288,6 +289,7 @@ export default function ProductEdit({ product, categories }: { product: Product,
|
|||||||
})
|
})
|
||||||
}}
|
}}
|
||||||
placeholder="Rp 0"
|
placeholder="Rp 0"
|
||||||
|
autoComplete='off'
|
||||||
/>
|
/>
|
||||||
{errors['prices.distributor'] && <p className="text-xs text-red-500">{errors['prices.distributor']}</p>}
|
{errors['prices.distributor'] && <p className="text-xs text-red-500">{errors['prices.distributor']}</p>}
|
||||||
</Field>
|
</Field>
|
||||||
@ -308,6 +310,7 @@ export default function ProductEdit({ product, categories }: { product: Product,
|
|||||||
})
|
})
|
||||||
}}
|
}}
|
||||||
placeholder="Rp 0"
|
placeholder="Rp 0"
|
||||||
|
autoComplete='off'
|
||||||
/>
|
/>
|
||||||
{errors['prices.agent'] && <p className="text-xs text-red-500">{errors['prices.agent']}</p>}
|
{errors['prices.agent'] && <p className="text-xs text-red-500">{errors['prices.agent']}</p>}
|
||||||
</Field>
|
</Field>
|
||||||
@ -328,6 +331,7 @@ export default function ProductEdit({ product, categories }: { product: Product,
|
|||||||
})
|
})
|
||||||
}}
|
}}
|
||||||
placeholder="Rp 0"
|
placeholder="Rp 0"
|
||||||
|
autoComplete='off'
|
||||||
/>
|
/>
|
||||||
{errors['prices.reseller'] && <p className="text-xs text-red-500">{errors['prices.reseller']}</p>}
|
{errors['prices.reseller'] && <p className="text-xs text-red-500">{errors['prices.reseller']}</p>}
|
||||||
</Field>
|
</Field>
|
||||||
@ -348,6 +352,7 @@ export default function ProductEdit({ product, categories }: { product: Product,
|
|||||||
})
|
})
|
||||||
}}
|
}}
|
||||||
placeholder="Rp 0"
|
placeholder="Rp 0"
|
||||||
|
autoComplete='off'
|
||||||
/>
|
/>
|
||||||
{errors['prices.retail'] && <p className="text-xs text-red-500">{errors['prices.retail']}</p>}
|
{errors['prices.retail'] && <p className="text-xs text-red-500">{errors['prices.retail']}</p>}
|
||||||
</Field>
|
</Field>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user