Commit 813a2ebd authored by Nawasan Wisitsingkhon's avatar Nawasan Wisitsingkhon

disable button when loading on payment

parent ebbdaa3b
......@@ -122,10 +122,16 @@ export default function ConfirmPayment({ open, handleClose, id, price }) {
</DialogContent>
)}
<DialogActions>
<Button color="error" onClick={handleClose}>
<Button
disabled={loading > -1}
color="error"
onClick={handleClose}
>
ยกเลิก
</Button>
<Button type="submit">ชำระเงิน</Button>
<Button disabled={loading > -1} type="submit">
ชำระเงิน
</Button>
</DialogActions>
</form>
</Dialog>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment