@sikka/hawa 0.1.1 → 0.1.3
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.
- package/dist/styles.css +24 -3
- package/es/blocks/AuthForms/AppLanding.d.ts +1 -0
- package/es/blocks/Misc/index.d.ts +0 -1
- package/es/index.es.js +3 -3
- package/lib/blocks/AuthForms/AppLanding.d.ts +1 -0
- package/lib/blocks/Misc/index.d.ts +0 -1
- package/lib/index.js +3 -3
- package/package.json +1 -1
- package/src/blocks/Account/UserProfileForm.tsx +94 -90
- package/src/blocks/Account/UserSettingsForm.tsx +7 -14
- package/src/blocks/AuthForms/AppLanding.tsx +71 -17
- package/src/blocks/AuthForms/CodeConfirmation.tsx +44 -43
- package/src/blocks/AuthForms/NewPasswordForm.tsx +66 -51
- package/src/blocks/AuthForms/ResetPasswordForm.tsx +53 -45
- package/src/blocks/AuthForms/SignInForm.tsx +0 -2
- package/src/blocks/AuthForms/SignInPhone.tsx +30 -29
- package/src/blocks/AuthForms/SignUpForm.tsx +0 -1
- package/src/blocks/Misc/EmptyState.tsx +27 -23
- package/src/blocks/Misc/LeadGenerator.tsx +27 -24
- package/src/blocks/Misc/NoPermission.tsx +25 -22
- package/src/blocks/Misc/NotFound.tsx +15 -15
- package/src/blocks/Misc/index.ts +0 -1
- package/src/blocks/Payment/ChargeWalletForm.tsx +25 -24
- package/src/blocks/Payment/CheckoutForm.tsx +194 -189
- package/src/blocks/Payment/Confirmation.tsx +36 -34
- package/src/blocks/Payment/CreditCardForm.tsx +71 -73
- package/src/blocks/Payment/PayWithWallet.tsx +13 -15
- package/src/blocks/Payment/SelectPayment.tsx +58 -54
- package/src/blocks/Referral/ReferralAccount.tsx +52 -49
- package/src/blocks/Referral/ReferralSettlement.tsx +64 -62
- package/src/blocks/Referral/ReferralStats.tsx +53 -51
- package/src/elements/HawaRadio.tsx +1 -1
- package/src/styles.css +24 -3
- package/es/blocks/Misc/Newsletter.d.ts +0 -12
- package/lib/blocks/Misc/Newsletter.d.ts +0 -12
- package/src/blocks/Misc/Newsletter.tsx +0 -50
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React, { FC } from "react"
|
|
2
|
-
import {
|
|
2
|
+
import { HawaTextField } from "../../elements"
|
|
3
3
|
import { Controller, useForm } from "react-hook-form"
|
|
4
|
-
import {
|
|
4
|
+
import { Card, CardContent, CardFooter } from "../../elements/Card"
|
|
5
|
+
import { Button } from "../../elements/Button"
|
|
5
6
|
|
|
6
7
|
type CreditCardFormTypes = {
|
|
7
8
|
handle: any
|
|
@@ -17,28 +18,10 @@ export const CreditCardForm: FC<CreditCardFormTypes> = (props) => {
|
|
|
17
18
|
} = methods
|
|
18
19
|
|
|
19
20
|
return (
|
|
20
|
-
<
|
|
21
|
-
{" "}
|
|
21
|
+
<Card>
|
|
22
22
|
<form onSubmit={handleSubmit(props.handle)}>
|
|
23
|
-
<
|
|
24
|
-
<
|
|
25
|
-
control={control}
|
|
26
|
-
name="cardName"
|
|
27
|
-
render={({ field }) => (
|
|
28
|
-
<HawaTextField
|
|
29
|
-
width="full"
|
|
30
|
-
name="password"
|
|
31
|
-
placeholder="Enter password"
|
|
32
|
-
type="tel"
|
|
33
|
-
label="Card Number"
|
|
34
|
-
helpertext={errors.password?.message}
|
|
35
|
-
/>
|
|
36
|
-
)}
|
|
37
|
-
rules={{
|
|
38
|
-
required: "Password is rquired",
|
|
39
|
-
}}
|
|
40
|
-
/>
|
|
41
|
-
<div className="w-1/4">
|
|
23
|
+
<CardContent headless>
|
|
24
|
+
<div className="flex flex-row gap-4">
|
|
42
25
|
<Controller
|
|
43
26
|
control={control}
|
|
44
27
|
name="cardName"
|
|
@@ -46,11 +29,9 @@ export const CreditCardForm: FC<CreditCardFormTypes> = (props) => {
|
|
|
46
29
|
<HawaTextField
|
|
47
30
|
width="full"
|
|
48
31
|
name="password"
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
type="password"
|
|
53
|
-
label="CCV"
|
|
32
|
+
placeholder="Enter password"
|
|
33
|
+
type="tel"
|
|
34
|
+
label="Card Number"
|
|
54
35
|
helpertext={errors.password?.message}
|
|
55
36
|
/>
|
|
56
37
|
)}
|
|
@@ -58,52 +39,69 @@ export const CreditCardForm: FC<CreditCardFormTypes> = (props) => {
|
|
|
58
39
|
required: "Password is rquired",
|
|
59
40
|
}}
|
|
60
41
|
/>
|
|
42
|
+
<div className="w-1/4">
|
|
43
|
+
<Controller
|
|
44
|
+
control={control}
|
|
45
|
+
name="cardName"
|
|
46
|
+
render={({ field }) => (
|
|
47
|
+
<HawaTextField
|
|
48
|
+
width="full"
|
|
49
|
+
name="password"
|
|
50
|
+
maxLength="3"
|
|
51
|
+
autoComplete="cc-number"
|
|
52
|
+
placeholder=""
|
|
53
|
+
type="password"
|
|
54
|
+
label="CCV"
|
|
55
|
+
helpertext={errors.password?.message}
|
|
56
|
+
/>
|
|
57
|
+
)}
|
|
58
|
+
rules={{
|
|
59
|
+
required: "Password is rquired",
|
|
60
|
+
}}
|
|
61
|
+
/>
|
|
62
|
+
</div>
|
|
61
63
|
</div>
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
onClick={props.handlePayWithCreditCard}
|
|
103
|
-
>
|
|
104
|
-
Pay with Credit Card
|
|
105
|
-
</HawaButton>
|
|
64
|
+
<Controller
|
|
65
|
+
control={control}
|
|
66
|
+
name="cardName"
|
|
67
|
+
render={({ field }) => (
|
|
68
|
+
<HawaTextField
|
|
69
|
+
width="full"
|
|
70
|
+
name="password"
|
|
71
|
+
placeholder="Enter password"
|
|
72
|
+
type="text"
|
|
73
|
+
label="Name On Card"
|
|
74
|
+
helpertext={errors.password?.message}
|
|
75
|
+
/>
|
|
76
|
+
)}
|
|
77
|
+
rules={{
|
|
78
|
+
required: "Password is rquired",
|
|
79
|
+
}}
|
|
80
|
+
/>
|
|
81
|
+
<Controller
|
|
82
|
+
control={control}
|
|
83
|
+
name="cardName"
|
|
84
|
+
render={({ field }) => (
|
|
85
|
+
<HawaTextField
|
|
86
|
+
width="full"
|
|
87
|
+
name="password"
|
|
88
|
+
placeholder="Enter password"
|
|
89
|
+
type="password"
|
|
90
|
+
label="Expiry Date"
|
|
91
|
+
helpertext={errors.password?.message}
|
|
92
|
+
/>
|
|
93
|
+
)}
|
|
94
|
+
rules={{
|
|
95
|
+
required: "Password is rquired",
|
|
96
|
+
}}
|
|
97
|
+
/>
|
|
98
|
+
</CardContent>
|
|
99
|
+
<CardFooter>
|
|
100
|
+
<Button className="w-full" onClick={props.handlePayWithCreditCard}>
|
|
101
|
+
Pay with Credit Card
|
|
102
|
+
</Button>
|
|
103
|
+
</CardFooter>
|
|
106
104
|
</form>
|
|
107
|
-
</
|
|
105
|
+
</Card>
|
|
108
106
|
)
|
|
109
107
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { FC } from "react"
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { Card, CardContent } from "../../elements/Card"
|
|
3
|
+
import { Button } from "../../elements/Button"
|
|
4
4
|
|
|
5
5
|
type PayWithWalletTypes = {
|
|
6
6
|
walletBalance: any
|
|
@@ -9,18 +9,16 @@ type PayWithWalletTypes = {
|
|
|
9
9
|
}
|
|
10
10
|
export const PayWithWallet: FC<PayWithWalletTypes> = (props) => {
|
|
11
11
|
return (
|
|
12
|
-
<
|
|
13
|
-
<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
>
|
|
22
|
-
|
|
23
|
-
</HawaButton>
|
|
24
|
-
</HawaContainer>
|
|
12
|
+
<Card>
|
|
13
|
+
<CardContent headless>
|
|
14
|
+
<div className="text-center text-5xl font-extrabold">
|
|
15
|
+
{props.walletBalance || "0"}
|
|
16
|
+
<div className="text-sm font-normal">{props.currency || "SAR"}</div>
|
|
17
|
+
</div>
|
|
18
|
+
<Button className="mt-6 w-full" onClick={props.handlePayWithWallet}>
|
|
19
|
+
Pay Now
|
|
20
|
+
</Button>
|
|
21
|
+
</CardContent>
|
|
22
|
+
</Card>
|
|
25
23
|
)
|
|
26
24
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { FC } from "react"
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { HawaLogoButton } from "../../elements"
|
|
3
|
+
import { Card, CardContent, CardHeader, CardTitle } from "../../elements/Card"
|
|
4
4
|
|
|
5
5
|
type SelectPaymentTypes = {
|
|
6
6
|
viaMada: boolean
|
|
@@ -28,57 +28,61 @@ type SelectPaymentTypes = {
|
|
|
28
28
|
|
|
29
29
|
export const SelectPayment: FC<SelectPaymentTypes> = (props) => {
|
|
30
30
|
return (
|
|
31
|
-
<
|
|
32
|
-
<
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
31
|
+
<Card>
|
|
32
|
+
<CardHeader>
|
|
33
|
+
<CardTitle>Choose Payment Method</CardTitle>
|
|
34
|
+
</CardHeader>
|
|
35
|
+
<CardContent>
|
|
36
|
+
{props.viaWallet && (
|
|
37
|
+
<HawaLogoButton
|
|
38
|
+
logo="wallet"
|
|
39
|
+
buttonText={props.walletLabel}
|
|
40
|
+
onClick={props.handleWallet}
|
|
41
|
+
/>
|
|
42
|
+
)}
|
|
43
|
+
{props.viaCreditCard && (
|
|
44
|
+
<HawaLogoButton
|
|
45
|
+
logo="visa/master"
|
|
46
|
+
buttonText={props.visaMasterLabel}
|
|
47
|
+
onClick={props.handleCreditCard}
|
|
48
|
+
/>
|
|
49
|
+
)}
|
|
50
|
+
{props.viaMada && (
|
|
51
|
+
<HawaLogoButton
|
|
52
|
+
logo="mada"
|
|
53
|
+
buttonText={props.madaLabel}
|
|
54
|
+
onClick={props.handleMada}
|
|
55
|
+
/>
|
|
56
|
+
)}
|
|
57
|
+
{props.viaSTCPay && (
|
|
58
|
+
<HawaLogoButton
|
|
59
|
+
logo="stcpay"
|
|
60
|
+
buttonText={props.stcPayLabel}
|
|
61
|
+
onClick={props.handleSTCPay}
|
|
62
|
+
/>
|
|
63
|
+
)}
|
|
64
|
+
{props.viaPayPal && (
|
|
65
|
+
<HawaLogoButton
|
|
66
|
+
logo="paypal"
|
|
67
|
+
buttonText={props.paypalLabel}
|
|
68
|
+
onClick={props.handlePayPal}
|
|
69
|
+
/>
|
|
70
|
+
)}
|
|
71
|
+
{props.viaGooglePay && (
|
|
72
|
+
<HawaLogoButton
|
|
73
|
+
logo="googlepay"
|
|
74
|
+
buttonText={props.googlePayLabel}
|
|
75
|
+
onClick={props.handleGooglePay}
|
|
76
|
+
/>
|
|
77
|
+
)}
|
|
78
|
+
{props.viaApplePay && (
|
|
79
|
+
<HawaLogoButton
|
|
80
|
+
logo="applepay"
|
|
81
|
+
buttonText={props.applePayLabel}
|
|
82
|
+
onClick={props.handleApplePay}
|
|
83
|
+
/>
|
|
84
|
+
)}
|
|
85
|
+
</CardContent>
|
|
86
|
+
</Card>
|
|
83
87
|
)
|
|
84
88
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { FC } from "react"
|
|
2
|
-
|
|
3
|
-
import {
|
|
2
|
+
|
|
3
|
+
import { Card, CardContent } from "../../elements/Card"
|
|
4
|
+
import { Button } from "../../elements/Button"
|
|
4
5
|
|
|
5
6
|
type ReferralAccount = {
|
|
6
7
|
referralLink: string
|
|
@@ -12,54 +13,56 @@ export const ReferralAccount: FC<ReferralAccount> = ({
|
|
|
12
13
|
referralCode,
|
|
13
14
|
}) => {
|
|
14
15
|
return (
|
|
15
|
-
<
|
|
16
|
-
<
|
|
17
|
-
<div className="
|
|
18
|
-
|
|
19
|
-
<
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
<
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
16
|
+
<Card>
|
|
17
|
+
<CardContent headless>
|
|
18
|
+
<div className="my-2 mt-0">
|
|
19
|
+
<div className="mb-1">Referral Code</div>
|
|
20
|
+
<div className="flex flex-row items-center justify-between rounded border bg-background">
|
|
21
|
+
<span className="ml-3 font-bold">{referralCode}</span>
|
|
22
|
+
<Button
|
|
23
|
+
// tooltip="Copy"
|
|
24
|
+
// className="mr-1.5"
|
|
25
|
+
onClick={() => navigator.clipboard.writeText(referralCode)}
|
|
26
|
+
>
|
|
27
|
+
<span className="bg-red flex items-center justify-center">
|
|
28
|
+
<svg
|
|
29
|
+
stroke="currentColor"
|
|
30
|
+
fill="currentColor"
|
|
31
|
+
stroke-width="0"
|
|
32
|
+
viewBox="0 0 512 512"
|
|
33
|
+
height="1em"
|
|
34
|
+
width="1em"
|
|
35
|
+
>
|
|
36
|
+
<path d="M464 0c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48H176c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h288M176 416c-44.112 0-80-35.888-80-80V128H48c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48v-48H176z"></path>
|
|
37
|
+
</svg>{" "}
|
|
38
|
+
</span>
|
|
39
|
+
</Button>
|
|
40
|
+
</div>
|
|
38
41
|
</div>
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
</
|
|
59
|
-
</
|
|
60
|
-
</
|
|
42
|
+
<div className="my-2 mt-0">
|
|
43
|
+
<div className="mb-1">Referral Link</div>
|
|
44
|
+
<div className="flex flex-row items-center justify-between rounded border bg-background">
|
|
45
|
+
<span className="ml-3 font-bold">{referralLink}</span>
|
|
46
|
+
<Button
|
|
47
|
+
// className="mr-1.5"
|
|
48
|
+
onClick={() => navigator.clipboard.writeText(referralLink)}
|
|
49
|
+
>
|
|
50
|
+
<span className="bg-red flex items-center justify-center">
|
|
51
|
+
<svg
|
|
52
|
+
stroke="currentColor"
|
|
53
|
+
fill="currentColor"
|
|
54
|
+
stroke-width="0"
|
|
55
|
+
viewBox="0 0 512 512"
|
|
56
|
+
height="1em"
|
|
57
|
+
width="1em"
|
|
58
|
+
>
|
|
59
|
+
<path d="M464 0c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48H176c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h288M176 416c-44.112 0-80-35.888-80-80V128H48c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48v-48H176z"></path>
|
|
60
|
+
</svg>{" "}
|
|
61
|
+
</span>
|
|
62
|
+
</Button>
|
|
63
|
+
</div>
|
|
61
64
|
</div>
|
|
62
|
-
</
|
|
63
|
-
</
|
|
65
|
+
</CardContent>
|
|
66
|
+
</Card>
|
|
64
67
|
)
|
|
65
68
|
}
|
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
HawaSelect,
|
|
8
8
|
HawaTextField,
|
|
9
9
|
} from "../../elements"
|
|
10
|
-
import { HawaContainer } from "../../layout"
|
|
11
10
|
import { Controller, FormProvider, useForm } from "react-hook-form"
|
|
11
|
+
import { Card, CardContent } from "../../elements/Card"
|
|
12
12
|
|
|
13
13
|
type TReferralSettlement = {
|
|
14
14
|
referralLink: string
|
|
@@ -28,69 +28,71 @@ export const ReferralSettlement: FC<TReferralSettlement> = ({
|
|
|
28
28
|
control,
|
|
29
29
|
} = methods
|
|
30
30
|
return (
|
|
31
|
-
<
|
|
32
|
-
<
|
|
33
|
-
<
|
|
34
|
-
<
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
{
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
<HawaButton width="full">Add Bank Account</HawaButton>
|
|
61
|
-
</div>
|
|
62
|
-
{withdrawError && (
|
|
31
|
+
<Card>
|
|
32
|
+
<CardContent headless>
|
|
33
|
+
<div>
|
|
34
|
+
<FormProvider {...methods}>
|
|
35
|
+
<HawaTextField label={"IBAN"} />
|
|
36
|
+
<HawaTextField label={"Holder Name"} />
|
|
37
|
+
<Controller
|
|
38
|
+
control={control}
|
|
39
|
+
name="bank"
|
|
40
|
+
render={({ field }) => (
|
|
41
|
+
<HawaSelect
|
|
42
|
+
label="Bank"
|
|
43
|
+
isCreatable={false}
|
|
44
|
+
isMulti={false ?? false}
|
|
45
|
+
isSearchable={false}
|
|
46
|
+
isClearable={false ?? false}
|
|
47
|
+
options={[
|
|
48
|
+
{ value: "snb", label: "Saudi National Bank" },
|
|
49
|
+
{ value: "bilad", label: "Al Bilad Bank" },
|
|
50
|
+
{ value: "rajihi", label: "Al Rajihi Bank" },
|
|
51
|
+
]}
|
|
52
|
+
onInputChange={(e: any, o: any) => console.log("changing", e)}
|
|
53
|
+
{...field}
|
|
54
|
+
onChange={(e: any, o: any) => console.log("chooo", e)}
|
|
55
|
+
/>
|
|
56
|
+
)}
|
|
57
|
+
/>
|
|
58
|
+
</FormProvider>
|
|
59
|
+
</div>
|
|
63
60
|
<div>
|
|
64
|
-
<
|
|
65
|
-
text={
|
|
66
|
-
"Sorry can't withdraw the money at the moment. Please try again in 2022/11/20"
|
|
67
|
-
}
|
|
68
|
-
severity="warning"
|
|
69
|
-
/>
|
|
61
|
+
<HawaButton width="full">Add Bank Account</HawaButton>
|
|
70
62
|
</div>
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
63
|
+
{withdrawError && (
|
|
64
|
+
<div>
|
|
65
|
+
<HawaAlert
|
|
66
|
+
text={
|
|
67
|
+
"Sorry can't withdraw the money at the moment. Please try again in 2022/11/20"
|
|
68
|
+
}
|
|
69
|
+
severity="warning"
|
|
70
|
+
/>
|
|
71
|
+
</div>
|
|
72
|
+
)}
|
|
73
|
+
<div className="mt-3">
|
|
74
|
+
<div className="mb-1">Settlement Accounts</div>
|
|
75
|
+
<div className="rounded">
|
|
76
|
+
<SettlementAccountCard
|
|
77
|
+
bank="Al Inma Bank"
|
|
78
|
+
iban="SA10228094028098329119"
|
|
79
|
+
accountHolder="Zakher Masri"
|
|
80
|
+
default
|
|
81
|
+
/>
|
|
82
|
+
<SettlementAccountCard
|
|
83
|
+
bank="Al Rajihi Bank"
|
|
84
|
+
iban="SA10228094028098329119"
|
|
85
|
+
accountHolder="Zakher Masri"
|
|
86
|
+
/>
|
|
87
|
+
<SettlementAccountCard
|
|
88
|
+
bank="Al Inma Bank"
|
|
89
|
+
iban="SA10228094028098329119"
|
|
90
|
+
accountHolder="Zakher Masri"
|
|
91
|
+
/>
|
|
92
|
+
</div>
|
|
91
93
|
</div>
|
|
92
|
-
</
|
|
93
|
-
</
|
|
94
|
+
</CardContent>
|
|
95
|
+
</Card>
|
|
94
96
|
)
|
|
95
97
|
}
|
|
96
98
|
|
|
@@ -121,7 +123,7 @@ const SettlementAccountCard = (props) => {
|
|
|
121
123
|
// position={direction === "rtl" ? "right-bottom" : "left-bottom"}
|
|
122
124
|
// direction={direction}
|
|
123
125
|
>
|
|
124
|
-
<HawaButton variant="outlined"
|
|
126
|
+
<HawaButton variant="outlined">
|
|
125
127
|
<svg
|
|
126
128
|
aria-label="Vertical Three Dots Menu Icon"
|
|
127
129
|
className="rotate-90"
|