@opexa/portal-components 0.0.721 → 0.0.722

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -45,6 +45,7 @@ export function AiOGCashDeposit() {
45
45
  onSuccess(data) {
46
46
  invariant(data.checkoutUrl);
47
47
  window.open(data.checkoutUrl, '_blank', 'noopener,noreferrer');
48
+ setStatus('success');
48
49
  },
49
50
  onError() {
50
51
  setStatus('failed');
@@ -45,6 +45,7 @@ export function AiOGrabPayDeposit() {
45
45
  onSuccess(data) {
46
46
  invariant(data.checkoutUrl);
47
47
  window.open(data.checkoutUrl, '_blank', 'noopener,noreferrer');
48
+ setStatus('success');
48
49
  },
49
50
  onError() {
50
51
  setStatus('failed');
@@ -45,6 +45,7 @@ export function AiOPalawanPayDeposit() {
45
45
  onSuccess(data) {
46
46
  invariant(data.checkoutUrl);
47
47
  window.open(data.checkoutUrl, '_blank', 'noopener,noreferrer');
48
+ setStatus('success');
48
49
  },
49
50
  onError() {
50
51
  setStatus('failed');
@@ -45,6 +45,7 @@ export function AiOPayMayaDeposit() {
45
45
  onSuccess(data) {
46
46
  invariant(data.checkoutUrl);
47
47
  window.open(data.checkoutUrl, '_blank', 'noopener,noreferrer');
48
+ setStatus('success');
48
49
  },
49
50
  onError() {
50
51
  setStatus('failed');
@@ -135,7 +136,9 @@ export function AiOPayMayaDeposit() {
135
136
  createDepositMutation.mutate({
136
137
  amount: data.amount.toString(),
137
138
  promo: data.promo ?? undefined,
138
- redirectUrl: window.location.origin,
139
+ redirectUrl: window.location.origin.includes('localhost')
140
+ ? 'https://uat.powerplay.ph'
141
+ : window.location.origin,
139
142
  });
140
143
  }
141
144
  }), noValidate: true, children: [_jsx(Controller, { control: form.control, name: "amount", render: (o) => (_jsxs(Field.Root, { invalid: !!form.formState.errors.amount, children: [_jsxs(NumberInput.Root, { min: 0, step: 1, value: o.field.value, onValueChange: (details) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opexa/portal-components",
3
- "version": "0.0.721",
3
+ "version": "0.0.722",
4
4
  "exports": {
5
5
  "./ui/*": {
6
6
  "types": "./dist/ui/*/index.d.ts",