add: more things

Signed-off-by: Kenneth Obsequio <k80308392@gmail.com>
This commit is contained in:
2026-07-06 15:21:36 +08:00
parent 41e98bb602
commit 244aa607f7
71 changed files with 2998 additions and 1014 deletions
+12 -2
View File
@@ -385,12 +385,22 @@ export default function PlanList() {
setRefundLoading(true);
try {
const { data } = await api.post("/client/tiers/checkout/refund");
toast.success(data.message ?? "Refund processed. Your access has been revoked.");
toast(data.message ?? "Refund processed. Your access has been revoked.", {
action: {
label: "Close",
onClick: () => {}
}
});
setRefundPlan(null);
resetMyTier();
getMyTier();
} catch (err) {
toast.error(err?.response?.data?.message ?? "Refund failed. Please try again.");
toast(err?.response?.data?.message ?? "Refund failed. Please try again.", {
action: {
label: "Close",
onClick: () => {}
}
});
} finally {
setRefundLoading(false);
}