mirror of
https://github.com/i701/sarlink-portal.git
synced 2025-07-01 15:23:58 +00:00
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
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 6m28s
This commit is contained in:
@ -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"
|
||||
|
Reference in New Issue
Block a user