refactor: update axios client import, enhance device and payment handling, and add cancel payment button component
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 6m28s

This commit is contained in:
2025-04-08 21:37:51 +05:00
parent daab793592
commit 7e49bf119a
14 changed files with 270 additions and 178 deletions

View File

@ -10,6 +10,9 @@ export default function AddDevicesToCartButton({ device }: { device: Device }) {
const isChecked = devices.some((d) => d.id === device.id);
if (device.has_a_pending_payment || device.is_active) {
return null;
}
return (
<input
type="checkbox"