be-components 3.6.1 → 3.6.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/lib/commonjs/Checkout/components/AccountSummaryCard.js +52 -57
- package/lib/commonjs/Checkout/components/AccountSummaryCard.js.map +1 -1
- package/lib/commonjs/Checkout/components/ItemSummaryCard.js +8 -11
- package/lib/commonjs/Checkout/components/ItemSummaryCard.js.map +1 -1
- package/lib/commonjs/Checkout/components/OrderSummaryCard.js +21 -25
- package/lib/commonjs/Checkout/components/OrderSummaryCard.js.map +1 -1
- package/lib/commonjs/Checkout/components/PayPalOrderCapture.js +2 -2
- package/lib/commonjs/Checkout/components/PayPalOrderCapture.js.map +1 -1
- package/lib/commonjs/Checkout/components/ShippingSummaryCard.js +11 -15
- package/lib/commonjs/Checkout/components/ShippingSummaryCard.js.map +1 -1
- package/lib/commonjs/Checkout/index.js +177 -154
- package/lib/commonjs/Checkout/index.js.map +1 -1
- package/lib/commonjs/Components/Checkbox.js +7 -5
- package/lib/commonjs/Components/Checkbox.js.map +1 -1
- package/lib/commonjs/Components/Icons.js +9 -9
- package/lib/commonjs/Components/Icons.js.map +1 -1
- package/lib/commonjs/Wallet/components/ACHAddCard.js +233 -194
- package/lib/commonjs/Wallet/components/ACHAddCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/AddressCard.js +19 -17
- package/lib/commonjs/Wallet/components/AddressCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/AddressManager.js +64 -92
- package/lib/commonjs/Wallet/components/AddressManager.js.map +1 -1
- package/lib/commonjs/Wallet/components/FundAccountCard.js +106 -95
- package/lib/commonjs/Wallet/components/FundAccountCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/LinkAccountManager.js +80 -106
- package/lib/commonjs/Wallet/components/LinkAccountManager.js.map +1 -1
- package/lib/commonjs/Wallet/components/ManualACHAdd.js +155 -151
- package/lib/commonjs/Wallet/components/ManualACHAdd.js.map +1 -1
- package/lib/commonjs/Wallet/components/ManualCardAdd.js +207 -204
- package/lib/commonjs/Wallet/components/ManualCardAdd.js.map +1 -1
- package/lib/commonjs/Wallet/components/MyBalance.js +73 -66
- package/lib/commonjs/Wallet/components/MyBalance.js.map +1 -1
- package/lib/commonjs/Wallet/components/WalletSetup.js +286 -246
- package/lib/commonjs/Wallet/components/WalletSetup.js.map +1 -1
- package/lib/commonjs/Wallet/index.js +1 -0
- package/lib/commonjs/Wallet/index.js.map +1 -1
- package/lib/module/Checkout/components/AccountSummaryCard.js +25 -30
- package/lib/module/Checkout/components/AccountSummaryCard.js.map +1 -1
- package/lib/module/Checkout/components/ItemSummaryCard.js +4 -7
- package/lib/module/Checkout/components/ItemSummaryCard.js.map +1 -1
- package/lib/module/Checkout/components/OrderSummaryCard.js +9 -13
- package/lib/module/Checkout/components/OrderSummaryCard.js.map +1 -1
- package/lib/module/Checkout/components/PayPalOrderCapture.js +1 -1
- package/lib/module/Checkout/components/PayPalOrderCapture.js.map +1 -1
- package/lib/module/Checkout/components/ShippingSummaryCard.js +5 -9
- package/lib/module/Checkout/components/ShippingSummaryCard.js.map +1 -1
- package/lib/module/Checkout/index.js +146 -123
- package/lib/module/Checkout/index.js.map +1 -1
- package/lib/module/Components/Checkbox.js +6 -4
- package/lib/module/Components/Checkbox.js.map +1 -1
- package/lib/module/Components/Icons.js +10 -10
- package/lib/module/Components/Icons.js.map +1 -1
- package/lib/module/Wallet/components/ACHAddCard.js +233 -194
- package/lib/module/Wallet/components/ACHAddCard.js.map +1 -1
- package/lib/module/Wallet/components/AddressCard.js +14 -12
- package/lib/module/Wallet/components/AddressCard.js.map +1 -1
- package/lib/module/Wallet/components/AddressManager.js +29 -57
- package/lib/module/Wallet/components/AddressManager.js.map +1 -1
- package/lib/module/Wallet/components/FundAccountCard.js +71 -60
- package/lib/module/Wallet/components/FundAccountCard.js.map +1 -1
- package/lib/module/Wallet/components/LinkAccountManager.js +55 -81
- package/lib/module/Wallet/components/LinkAccountManager.js.map +1 -1
- package/lib/module/Wallet/components/ManualACHAdd.js +146 -141
- package/lib/module/Wallet/components/ManualACHAdd.js.map +1 -1
- package/lib/module/Wallet/components/ManualCardAdd.js +204 -201
- package/lib/module/Wallet/components/ManualCardAdd.js.map +1 -1
- package/lib/module/Wallet/components/MyBalance.js +45 -38
- package/lib/module/Wallet/components/MyBalance.js.map +1 -1
- package/lib/module/Wallet/components/WalletSetup.js +287 -247
- package/lib/module/Wallet/components/WalletSetup.js.map +1 -1
- package/lib/module/Wallet/index.js +1 -0
- package/lib/module/Wallet/index.js.map +1 -1
- package/lib/typescript/lib/commonjs/Checkout/components/AccountSummaryCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Checkout/components/ItemSummaryCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Checkout/components/OrderSummaryCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Checkout/components/ShippingSummaryCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Checkout/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Components/Checkbox.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/ACHAddCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/AddressCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/AddressManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/FundAccountCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/LinkAccountManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/ManualACHAdd.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/ManualCardAdd.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/MyBalance.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/WalletSetup.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Checkout/components/AccountSummaryCard.d.ts +1 -2
- package/lib/typescript/lib/module/Checkout/components/AccountSummaryCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Checkout/components/ItemSummaryCard.d.ts +1 -2
- package/lib/typescript/lib/module/Checkout/components/ItemSummaryCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Checkout/components/OrderSummaryCard.d.ts +1 -2
- package/lib/typescript/lib/module/Checkout/components/OrderSummaryCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Checkout/components/PayPalOrderCapture.d.ts +1 -2
- package/lib/typescript/lib/module/Checkout/components/PayPalOrderCapture.d.ts.map +1 -1
- package/lib/typescript/lib/module/Checkout/components/ShippingSummaryCard.d.ts +1 -2
- package/lib/typescript/lib/module/Checkout/components/ShippingSummaryCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Checkout/index.d.ts +1 -2
- package/lib/typescript/lib/module/Checkout/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Components/Checkbox.d.ts +1 -2
- package/lib/typescript/lib/module/Components/Checkbox.d.ts.map +1 -1
- package/lib/typescript/lib/module/Components/Icons.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/ACHAddCard.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/components/ACHAddCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/AddressCard.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/components/AddressCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/AddressManager.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/components/AddressManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/FundAccountCard.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/components/FundAccountCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/LinkAccountManager.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/components/LinkAccountManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/ManualACHAdd.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/components/ManualACHAdd.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/ManualCardAdd.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/components/ManualCardAdd.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/MyBalance.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/components/MyBalance.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/WalletSetup.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/components/WalletSetup.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/index.d.ts.map +1 -1
- package/lib/typescript/src/Checkout/components/AccountSummaryCard.d.ts.map +1 -1
- package/lib/typescript/src/Checkout/components/ItemSummaryCard.d.ts.map +1 -1
- package/lib/typescript/src/Checkout/components/OrderSummaryCard.d.ts.map +1 -1
- package/lib/typescript/src/Checkout/components/PayPalOrderCapture.d.ts.map +1 -1
- package/lib/typescript/src/Checkout/components/ShippingSummaryCard.d.ts.map +1 -1
- package/lib/typescript/src/Checkout/index.d.ts.map +1 -1
- package/lib/typescript/src/Components/Checkbox.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/ACHAddCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/AddressCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/AddressManager.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/FundAccountCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/LinkAccountManager.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/ManualACHAdd.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/ManualCardAdd.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/MyBalance.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/WalletSetup.d.ts.map +1 -1
- package/package.json +2 -1
- package/src/Checkout/components/AccountSummaryCard.tsx +25 -27
- package/src/Checkout/components/ItemSummaryCard.tsx +4 -6
- package/src/Checkout/components/OrderSummaryCard.tsx +9 -11
- package/src/Checkout/components/PayPalOrderCapture.tsx +4 -2
- package/src/Checkout/components/ShippingSummaryCard.tsx +5 -8
- package/src/Checkout/index.tsx +121 -105
- package/src/Components/Checkbox.tsx +7 -6
- package/src/Components/Icons.tsx +10 -10
- package/src/Wallet/components/ACHAddCard.tsx +90 -60
- package/src/Wallet/components/AddressCard.tsx +11 -11
- package/src/Wallet/components/AddressManager.tsx +33 -44
- package/src/Wallet/components/FundAccountCard.tsx +52 -51
- package/src/Wallet/components/LinkAccountManager.tsx +49 -59
- package/src/Wallet/components/ManualACHAdd.tsx +99 -79
- package/src/Wallet/components/ManualCardAdd.tsx +119 -95
- package/src/Wallet/components/MyBalance.tsx +38 -40
- package/src/Wallet/components/WalletSetup.tsx +138 -113
- package/src/Wallet/index.tsx +7 -7
package/src/Checkout/index.tsx
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Linking, ActivityIndicator, Modal, Platform } from "react-native";
|
|
3
3
|
import type { AccountProps, ItemOrderProps, ItemProps, MyPlayerProps, PlayerAddressProps, TransactionProps } from '../types';
|
|
4
|
-
import {
|
|
4
|
+
import { Icons } from '../Components';
|
|
5
5
|
import { CheckoutApi, CheckoutHelpers } from './api';
|
|
6
6
|
import ItemSummaryCard from './components/ItemSummaryCard';
|
|
7
7
|
import OrderSummaryCard from './components/OrderSummaryCard';
|
|
8
8
|
import AccountSummaryCard from './components/AccountSummaryCard';
|
|
9
|
-
import Colors from '../constants/colors';
|
|
10
9
|
import AddressManager from '../Wallet/components/AddressManager';
|
|
11
10
|
import { PayPalScriptProvider } from '@paypal/react-paypal-js';
|
|
12
11
|
import PayPalOrderCapture from './components/PayPalOrderCapture';
|
|
13
|
-
import SpringView from '../Components/Spring';
|
|
14
12
|
import { usePlayerLocation } from '../LocationTracker/LocationStatus';
|
|
15
13
|
import LocationTracker from '../LocationTracker';
|
|
16
|
-
import { view_styles } from '../constants/styles';
|
|
17
14
|
import { WalletApi } from '../Wallet/api';
|
|
18
15
|
import ShippingSummaryCard from './components/ShippingSummaryCard';
|
|
16
|
+
import { Button, Text, View } from '../Components/Themed';
|
|
17
|
+
import { useColors } from '../constants/useColors';
|
|
18
|
+
import WebView from 'react-native-webview';
|
|
19
19
|
|
|
20
20
|
type CheckoutProps = {
|
|
21
21
|
item_order:ItemOrderProps,
|
|
@@ -26,6 +26,7 @@ type CheckoutProps = {
|
|
|
26
26
|
onCancel:() => void
|
|
27
27
|
}
|
|
28
28
|
const Checkout = ({ item_order, height, account_id, onCancel, onCompleteOrder, onRequestNewAccount }:CheckoutProps) => {
|
|
29
|
+
const Colors = useColors();
|
|
29
30
|
const [ loading, setLoading ] = useState(false);
|
|
30
31
|
const [ completing, setCompleting ] = useState(false);
|
|
31
32
|
const [ error, setError ] = useState<string|undefined>();
|
|
@@ -184,7 +185,10 @@ const Checkout = ({ item_order, height, account_id, onCancel, onCompleteOrder, o
|
|
|
184
185
|
if(!ip_transaction?.redirect_url){ return }
|
|
185
186
|
if(completing){ return }
|
|
186
187
|
setCompleting(true);
|
|
187
|
-
|
|
188
|
+
if(Platform.OS == 'web'){
|
|
189
|
+
Linking.openURL(ip_transaction.redirect_url)
|
|
190
|
+
}
|
|
191
|
+
//Native we will use the webview component
|
|
188
192
|
setTimeout(() => {
|
|
189
193
|
checkTransactionStatus()
|
|
190
194
|
}, 5000);
|
|
@@ -193,8 +197,8 @@ const Checkout = ({ item_order, height, account_id, onCancel, onCompleteOrder, o
|
|
|
193
197
|
if(!draft_order || !player || !loaded){
|
|
194
198
|
return (
|
|
195
199
|
<View style={{ flex:1, height, padding:20 }}>
|
|
196
|
-
<Text size={16}
|
|
197
|
-
<ActivityIndicator size='large' color={Colors.
|
|
200
|
+
<Text size={16} theme='h1' textAlign='center'>LOADING YOUR CART</Text>
|
|
201
|
+
<ActivityIndicator size='large' color={Colors.text.h1} style={{ alignSelf:'center', marginTop:30 }} />
|
|
198
202
|
</View>
|
|
199
203
|
)
|
|
200
204
|
}
|
|
@@ -202,26 +206,26 @@ const Checkout = ({ item_order, height, account_id, onCancel, onCompleteOrder, o
|
|
|
202
206
|
return (
|
|
203
207
|
|
|
204
208
|
<View style={{ flex:1, height }}>
|
|
205
|
-
<
|
|
206
|
-
<View nativeID='items' style={{
|
|
209
|
+
<View style={{ flex:1 }}>
|
|
210
|
+
<View nativeID='items' style={{ borderBottomWidth:1, borderBottomColor:Colors.borders.light, padding:10}}>
|
|
207
211
|
<ItemSummaryCard
|
|
208
212
|
items={items}
|
|
209
213
|
/>
|
|
210
214
|
</View>
|
|
211
|
-
<View nativeID='order_summary' style={{
|
|
215
|
+
<View nativeID='order_summary' style={{ borderBottomWidth:1, borderBottomColor:Colors.borders.light, padding:10}}>
|
|
212
216
|
<OrderSummaryCard
|
|
213
217
|
item_order={draft_order}
|
|
214
218
|
/>
|
|
215
219
|
</View>
|
|
216
220
|
{shipping_address_required ?
|
|
217
|
-
<View nativeID='shipping_summary' style={{
|
|
221
|
+
<View nativeID='shipping_summary' style={{ borderBottomWidth:1, borderBottomColor:Colors.borders.light, padding:10}}>
|
|
218
222
|
<ShippingSummaryCard
|
|
219
223
|
player_address={shipping_address}
|
|
220
224
|
onChangeAddress={() => setShowAddresses({ visible: true, address_type: 'shipping' })}
|
|
221
225
|
/>
|
|
222
226
|
</View>
|
|
223
227
|
:<></>}
|
|
224
|
-
<View nativeID='account_summary' style={{
|
|
228
|
+
<View nativeID='account_summary' style={{ borderBottomWidth:1, borderBottomColor:Colors.borders.light, padding:10}}>
|
|
225
229
|
<AccountSummaryCard
|
|
226
230
|
accounts={accounts}
|
|
227
231
|
items={items}
|
|
@@ -245,20 +249,20 @@ const Checkout = ({ item_order, height, account_id, onCancel, onCompleteOrder, o
|
|
|
245
249
|
onSelectAccount={(account) => handleChangeAccount(account)}
|
|
246
250
|
/>
|
|
247
251
|
</View>
|
|
248
|
-
</
|
|
252
|
+
</View>
|
|
249
253
|
{order_errors.length > 0 ?
|
|
250
|
-
<View style={{ margin:10, borderRadius:4, padding:10
|
|
251
|
-
<Text style={{ marginBottom:5 }} size={14}
|
|
254
|
+
<View float style={{ margin:10, borderRadius:4, padding:10 }}>
|
|
255
|
+
<Text style={{ marginBottom:5 }} size={14} theme='h2'>Please fix the following before continuing</Text>
|
|
252
256
|
{order_errors.map(e => {
|
|
253
257
|
return (
|
|
254
|
-
<Text style={{ padding:4 }} size={12} color={Colors.
|
|
258
|
+
<Text style={{ padding:4 }} size={12} color={Colors.text.warning} theme='h1'>{e}</Text>
|
|
255
259
|
)
|
|
256
260
|
})}
|
|
257
261
|
</View>
|
|
258
262
|
:<></>}
|
|
259
263
|
{error?
|
|
260
264
|
<View style={{ padding:10 }}>
|
|
261
|
-
<Text size={14} color={Colors.
|
|
265
|
+
<Text size={14} color={Colors.text.warning} theme='h1' textAlign='center'>{error}</Text>
|
|
262
266
|
</View>
|
|
263
267
|
:<></>}
|
|
264
268
|
<PayPalScriptProvider
|
|
@@ -272,13 +276,10 @@ const Checkout = ({ item_order, height, account_id, onCancel, onCompleteOrder, o
|
|
|
272
276
|
style={{ flex:1, marginRight:5, opacity:loading?0.5:1 }}
|
|
273
277
|
title='CANCEL'
|
|
274
278
|
disabled={loading}
|
|
275
|
-
|
|
276
|
-
borderWidth={1}
|
|
277
|
-
borderColor={Colors.utility.error}
|
|
278
|
-
padding={15}
|
|
279
|
+
type='error'
|
|
279
280
|
onPress={() => handleCancel()}
|
|
280
281
|
/>
|
|
281
|
-
{selected_account?.account_type == 'paypal' ?
|
|
282
|
+
{selected_account?.account_type == 'paypal' && Platform.OS == 'web' ?
|
|
282
283
|
<PayPalOrderCapture
|
|
283
284
|
draft_item_order={draft_order}
|
|
284
285
|
paypal_account={selected_account}
|
|
@@ -290,15 +291,24 @@ const Checkout = ({ item_order, height, account_id, onCancel, onCompleteOrder, o
|
|
|
290
291
|
onOrderUpdate={(item_order, transaction) => setCheckout({ ip_item_order: item_order, ip_transaction: transaction })}
|
|
291
292
|
onCancel={() => console.log('DONE!')}
|
|
292
293
|
/>
|
|
294
|
+
: selected_account?.account_type == 'paypal' && Platform.OS != 'web' ?
|
|
295
|
+
<Button
|
|
296
|
+
loading={loading || location.loading}
|
|
297
|
+
disabled={loading || order_errors.length > 0}
|
|
298
|
+
style={{ flex:1, alignItems:'center', padding:10 }}
|
|
299
|
+
backgroundColor={Colors.absolutes.company.paypal}
|
|
300
|
+
onPress={() => handleConfirm()}
|
|
301
|
+
>
|
|
302
|
+
<Icons.PayPalIcon size={90}/>
|
|
303
|
+
</Button>
|
|
293
304
|
:
|
|
294
305
|
<Button
|
|
295
306
|
style={{ flex:3, opacity:loading || order_errors.length > 0 || error ? 0.5 : 1 }}
|
|
296
307
|
loading={loading || location.loading}
|
|
297
308
|
disabled={loading || order_errors.length > 0}
|
|
298
309
|
title={location.loading ?'VERIFYING LOCATION': will_redirect ? 'CONFIRM & CONTINUE' : 'SUBMIT PURCHASE'}
|
|
299
|
-
title_color={Colors.
|
|
300
|
-
backgroundColor={ will_redirect ? Colors.brand.electric : Colors.utility.success }
|
|
301
|
-
padding={15}
|
|
310
|
+
title_color={Colors.text.white}
|
|
311
|
+
backgroundColor={ will_redirect ? Colors.absolutes.brand.electric : Colors.absolutes.utility.success }
|
|
302
312
|
onPress={() => handleConfirm()}
|
|
303
313
|
/>
|
|
304
314
|
}
|
|
@@ -306,72 +316,98 @@ const Checkout = ({ item_order, height, account_id, onCancel, onCompleteOrder, o
|
|
|
306
316
|
: <></>}
|
|
307
317
|
</View>
|
|
308
318
|
</PayPalScriptProvider>
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
setCheckoutData({ ...checkout_data, shipping_address: selected_addy, player_addresses: player_addresses.filter(pa => pa.player_address_id != addy.player_address_id) })
|
|
329
|
-
}
|
|
330
|
-
}}
|
|
331
|
-
onAddAddress={(addy) => handleChangeBillingAddress(addy, show_addresses.address_type)}
|
|
332
|
-
onSelect={(addy) => handleChangeBillingAddress(addy, show_addresses.address_type)}
|
|
333
|
-
/>
|
|
334
|
-
</SpringView>
|
|
335
|
-
</View>
|
|
319
|
+
{Platform.OS != 'web' ?
|
|
320
|
+
<Modal
|
|
321
|
+
transparent
|
|
322
|
+
visible={completing && ip_transaction && ip_transaction.status == 'redirect' && ip_transaction.redirect_url ? true : false}
|
|
323
|
+
style={{ flex:1 }}
|
|
324
|
+
>
|
|
325
|
+
<View type='blur' style={{ flex:1, padding:20, paddingTop:50, paddingBottom:50 }}>
|
|
326
|
+
<View float style={{flex:1}}>
|
|
327
|
+
{completing && ip_transaction && ip_transaction.redirect_url ?
|
|
328
|
+
<WebView
|
|
329
|
+
style={{ flex:1 }}
|
|
330
|
+
originWhitelist={['*']}
|
|
331
|
+
source={{ uri:ip_transaction.redirect_url }}
|
|
332
|
+
/>
|
|
333
|
+
|
|
334
|
+
:<></>}
|
|
335
|
+
</View>
|
|
336
|
+
</View>
|
|
337
|
+
</Modal>
|
|
336
338
|
:<></>}
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
339
|
+
<Modal
|
|
340
|
+
visible={show_addresses.visible}
|
|
341
|
+
transparent
|
|
342
|
+
animationType='slide'
|
|
343
|
+
style={{flex:1}}
|
|
344
|
+
>
|
|
345
|
+
<View type='blur' style={{ flex:1 }}>
|
|
346
|
+
<AddressManager
|
|
347
|
+
player={player}
|
|
348
|
+
player_addresses={player_addresses}
|
|
349
|
+
location={location}
|
|
350
|
+
onCancel={() => setShowAddresses({ visible:false })}
|
|
351
|
+
onRemoveAddress={(addy) => {
|
|
352
|
+
let selected_addy = billing_address && billing_address.player_address_id == addy.player_address_id ? undefined : billing_address
|
|
353
|
+
if(show_addresses.address_type == 'billing'){
|
|
354
|
+
setCheckoutData({ ...checkout_data, billing_address: selected_addy, player_addresses: player_addresses.filter(pa => pa.player_address_id != addy.player_address_id) })
|
|
355
|
+
} else {
|
|
356
|
+
setCheckoutData({ ...checkout_data, shipping_address: selected_addy, player_addresses: player_addresses.filter(pa => pa.player_address_id != addy.player_address_id) })
|
|
357
|
+
}
|
|
358
|
+
}}
|
|
359
|
+
onAddAddress={(addy) => handleChangeBillingAddress(addy, show_addresses.address_type)}
|
|
360
|
+
onSelect={(addy) => handleChangeBillingAddress(addy, show_addresses.address_type)}
|
|
361
|
+
/>
|
|
362
|
+
</View>
|
|
363
|
+
</Modal>
|
|
364
|
+
<Modal
|
|
365
|
+
transparent
|
|
366
|
+
animationType='slide'
|
|
367
|
+
visible={ip_transaction && ip_transaction ? true : false}
|
|
368
|
+
style={{flex:1}}
|
|
369
|
+
>
|
|
370
|
+
<View type='blur' style={{ flex:1, justifyContent:'flex-end' }}>
|
|
371
|
+
{ip_item_order && ip_transaction ?
|
|
372
|
+
<View float style={{ borderTopRightRadius:22, borderTopLeftRadius:22 }}>
|
|
345
373
|
{ip_transaction.status == 'posted' ?
|
|
346
|
-
<View style={{
|
|
374
|
+
<View style={{ padding:10, paddingTop:30, paddingBottom:30, justifyContent:'center', alignItems:'center' }}>
|
|
347
375
|
<Icons.TransactionSuccessIcon size={150} />
|
|
348
|
-
<View style={{ padding:20, borderRadius:8, borderWidth:1, borderColor:Colors.
|
|
349
|
-
<Text size={20} color={Colors.
|
|
350
|
-
<Text style={{ marginTop:10 }} size={16}
|
|
376
|
+
<View style={{ padding:20, borderRadius:8, borderWidth:1, borderColor:Colors.text.success, marginTop:20 }}>
|
|
377
|
+
<Text size={20} color={Colors.text.success} theme='h1' textAlign='center'>Order Successful</Text>
|
|
378
|
+
<Text style={{ marginTop:10 }} size={16} theme='description' textAlign='center'>Your order was successfully processed. An email confirmation has been sent. Please select close below to continue.</Text>
|
|
351
379
|
</View>
|
|
352
380
|
</View>
|
|
353
381
|
: ip_transaction.status == 'failed' ?
|
|
354
|
-
<View style={{
|
|
382
|
+
<View style={{ padding:10, paddingTop:30, paddingBottom:30, justifyContent:'center', alignItems:'center' }}>
|
|
355
383
|
<Icons.TransactionErrorIcon size={150} />
|
|
356
|
-
<View style={{ padding:20, borderRadius:8, borderWidth:1, borderColor:Colors.
|
|
357
|
-
<Text size={20} color={Colors.
|
|
358
|
-
<Text style={{ marginTop:10 }} size={16}
|
|
384
|
+
<View style={{ padding:20, borderRadius:8, borderWidth:1, borderColor:Colors.text.error, marginTop:20 }}>
|
|
385
|
+
<Text size={20} color={Colors.text.error} theme='h1' textAlign='center'>Order Failed</Text>
|
|
386
|
+
<Text style={{ marginTop:10 }} size={16} theme='description' textAlign='center'>Sorry, we were unable to process your order at this time. Please try again or reach out to support for help.</Text>
|
|
359
387
|
</View>
|
|
360
388
|
</View>
|
|
361
389
|
:ip_transaction.status == 'cancelled' ?
|
|
362
|
-
<View style={{
|
|
390
|
+
<View style={{ padding:10, paddingTop:30, paddingBottom:30, justifyContent:'center', alignItems:'center' }}>
|
|
363
391
|
<Icons.TransactionErrorIcon size={150} />
|
|
364
|
-
<View style={{ padding:20, borderRadius:8, borderWidth:1, borderColor:Colors.
|
|
365
|
-
<Text size={20} color={Colors.
|
|
366
|
-
<Text style={{ marginTop:10 }} size={16}
|
|
392
|
+
<View style={{ padding:20, borderRadius:8, borderWidth:1, borderColor:Colors.text.error, marginTop:20 }}>
|
|
393
|
+
<Text size={20} color={Colors.text.error} theme='h1' textAlign='center'>Order Cancelled</Text>
|
|
394
|
+
<Text style={{ marginTop:10 }} size={16} theme='description' textAlign='center'>Your order was cancelled. Please try again.</Text>
|
|
367
395
|
</View>
|
|
368
396
|
</View>
|
|
369
|
-
: ip_transaction.status == 'redirect' ?
|
|
370
|
-
<View style={{
|
|
397
|
+
: ip_transaction.status == 'redirect' && selected_account?.account_type == 'ach' ?
|
|
398
|
+
<View style={{ padding:10, paddingTop:30, paddingBottom:30, justifyContent:'center', alignItems:'center' }}>
|
|
371
399
|
<Icons.IBTFLowIcon size={300} />
|
|
372
|
-
<View style={{ padding:20, borderRadius:8, borderWidth:1, borderColor:Colors.
|
|
373
|
-
<Text size={20}
|
|
374
|
-
<Text style={{ marginTop:10 }} size={16}
|
|
400
|
+
<View style={{ padding:20, borderRadius:8, borderWidth:1, borderColor:Colors.borders.light, marginTop:20 }}>
|
|
401
|
+
<Text size={20} theme='h1' textAlign='center'>Finish With Plaid</Text>
|
|
402
|
+
<Text style={{ marginTop:10 }} size={16} theme='description' textAlign='center'>Select Complete Order below to complete the transaction through Plaid</Text>
|
|
403
|
+
</View>
|
|
404
|
+
</View>
|
|
405
|
+
: ip_transaction.status == 'redirect' && selected_account?.account_type == 'paypal' ?
|
|
406
|
+
<View style={{ padding:10, paddingTop:30, paddingBottom:30, justifyContent:'center', alignItems:'center' }}>
|
|
407
|
+
<Icons.PayPalIcon size={250} />
|
|
408
|
+
<View style={{ padding:20, borderRadius:8, borderWidth:1, borderColor:Colors.borders.light, marginTop:20 }}>
|
|
409
|
+
<Text size={20} theme='h1' textAlign='center'>Finish With PayPal</Text>
|
|
410
|
+
<Text style={{ marginTop:10 }} size={16} theme='description' textAlign='center'>Select Complete Order below to complete the transaction through PayPal</Text>
|
|
375
411
|
</View>
|
|
376
412
|
</View>
|
|
377
413
|
:<></>
|
|
@@ -382,21 +418,14 @@ const Checkout = ({ item_order, height, account_id, onCancel, onCompleteOrder, o
|
|
|
382
418
|
style={{ flex:1, marginRight:5, opacity:1 }}
|
|
383
419
|
title='CANCEL'
|
|
384
420
|
//disabled={loading}
|
|
385
|
-
|
|
386
|
-
borderWidth={1}
|
|
387
|
-
borderColor={Colors.utility.error}
|
|
388
|
-
padding={15}
|
|
421
|
+
type='error'
|
|
389
422
|
onPress={() => handleCancel()}
|
|
390
423
|
/>
|
|
391
424
|
:
|
|
392
425
|
<Button
|
|
393
426
|
style={{ flex:1, opacity:1 }}
|
|
394
427
|
title='CLOSE'
|
|
395
|
-
|
|
396
|
-
title_color={Colors.utility.error}
|
|
397
|
-
borderWidth={1}
|
|
398
|
-
borderColor={Colors.utility.error}
|
|
399
|
-
padding={15}
|
|
428
|
+
type='error'
|
|
400
429
|
onPress={() => onCompleteOrder(ip_item_order, ip_transaction)}
|
|
401
430
|
/>
|
|
402
431
|
}
|
|
@@ -406,24 +435,18 @@ const Checkout = ({ item_order, height, account_id, onCancel, onCompleteOrder, o
|
|
|
406
435
|
loading={completing}
|
|
407
436
|
disabled={completing}
|
|
408
437
|
title='COMPLETE ORDER'
|
|
409
|
-
|
|
410
|
-
backgroundColor={Colors.brand.electric}
|
|
411
|
-
padding={15}
|
|
438
|
+
type='success'
|
|
412
439
|
onPress={() => handleRedirect()}
|
|
413
440
|
/>
|
|
414
441
|
:<></>}
|
|
415
442
|
</View>
|
|
416
|
-
</SpringView>
|
|
417
443
|
</View>
|
|
418
444
|
:<></>}
|
|
445
|
+
</View>
|
|
446
|
+
</Modal>
|
|
447
|
+
|
|
419
448
|
{show_location ?
|
|
420
|
-
<View style={{ position:'absolute', top:0, bottom:0, left:0, right:0,
|
|
421
|
-
<SpringView
|
|
422
|
-
to={0}
|
|
423
|
-
from={500}
|
|
424
|
-
slide='vertical'
|
|
425
|
-
style={{ backgroundColor:Colors.shades.white, borderTopRightRadius:40, borderTopLeftRadius:40 }}
|
|
426
|
-
>
|
|
449
|
+
<View style={{ position:'absolute', top:0, bottom:0, left:0, right:0, justifyContent:'flex-end' }}>
|
|
427
450
|
<LocationTracker
|
|
428
451
|
location={location}
|
|
429
452
|
permission={permission}
|
|
@@ -431,18 +454,11 @@ const Checkout = ({ item_order, height, account_id, onCancel, onCompleteOrder, o
|
|
|
431
454
|
onPromptForPermission={() => checkPermissions()}
|
|
432
455
|
onClose={() => setShowLocation(false)}
|
|
433
456
|
/>
|
|
434
|
-
</SpringView>
|
|
435
457
|
</View>
|
|
436
458
|
:<></>}
|
|
437
459
|
</View>
|
|
438
460
|
)
|
|
439
461
|
}
|
|
440
462
|
|
|
441
|
-
const local_styles = StyleSheet.create({
|
|
442
|
-
section: {
|
|
443
|
-
padding: 10,
|
|
444
|
-
margin:5
|
|
445
|
-
}
|
|
446
|
-
})
|
|
447
463
|
|
|
448
464
|
export default Checkout
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
2
|
+
import { Button, View } from './Themed';
|
|
3
|
+
import { useColors } from '../constants/useColors';
|
|
4
4
|
|
|
5
5
|
type CheckBoxProps = {
|
|
6
6
|
checked?:boolean,
|
|
@@ -13,18 +13,19 @@ type CheckBoxProps = {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
const Checkbox = ({ checked, size, disabled, color, onSelect, style, fill_style }:CheckBoxProps) => {
|
|
16
|
+
const Colors = useColors()
|
|
16
17
|
const box_size = size ?? 20
|
|
17
|
-
const box_color = color ?? Colors.
|
|
18
|
+
const box_color = color ?? Colors.text.h1
|
|
18
19
|
return (
|
|
19
|
-
<
|
|
20
|
+
<Button
|
|
20
21
|
disabled={disabled}
|
|
21
|
-
style={{ height:box_size, width:box_size, borderWidth:1, borderRadius:4, borderColor:box_color, justifyContent:'center', alignItems:'center', ...style }}
|
|
22
|
+
style={{ height:box_size, width:box_size, padding:5, borderWidth:1, borderRadius:4, borderColor:box_color, justifyContent:'center', alignItems:'center', ...style }}
|
|
22
23
|
onPress={() => onSelect(checked ? false : true)}
|
|
23
24
|
>
|
|
24
25
|
{checked ?
|
|
25
26
|
<View style={{ height:box_size*0.75, width:box_size*0.75, backgroundColor:box_color, ...fill_style }} />
|
|
26
27
|
:<></>}
|
|
27
|
-
</
|
|
28
|
+
</Button>
|
|
28
29
|
)
|
|
29
30
|
}
|
|
30
31
|
|
package/src/Components/Icons.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import Colors from '../constants/colors';
|
|
3
|
-
import Svg, { G, Circle, Line, Path, Mask, Rect, Defs, Stop, Polygon, Polyline } from 'react-native-svg';
|
|
3
|
+
import Svg, { G, Circle, Line, Path, Mask, Rect, Defs, Stop, Polygon, Polyline, LinearGradient } from 'react-native-svg';
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
type IconProps = {
|
|
@@ -245,17 +245,17 @@ const DiscoverCardIcon = ({ size }:IconProps) => {
|
|
|
245
245
|
return (
|
|
246
246
|
<Svg width={`${width}px`} height={`${height}px`} viewBox="0 0 53 37">
|
|
247
247
|
<Defs>
|
|
248
|
-
<
|
|
248
|
+
<LinearGradient x1="119.04999%" y1="34.8173989%" x2="34.8160554%" y2="-19.0523015%" id="LinearGradient-1">
|
|
249
249
|
<Stop stop-color="#F6A000" offset="0%"></Stop>
|
|
250
250
|
<Stop stop-color="#E47E02" offset="62.3918%"></Stop>
|
|
251
251
|
<Stop stop-color="#D36002" offset="100%"></Stop>
|
|
252
|
-
</
|
|
252
|
+
</LinearGradient>
|
|
253
253
|
</Defs>
|
|
254
254
|
<G id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
255
255
|
<G id="discover-svgrepo-com" transform="translate(1.896552, 1.000000)">
|
|
256
256
|
<Rect id="Rectangle" stroke="#F3F3F3" stroke-width="2" fill="#FFFFFF" fill-rule="nonzero" x="0" y="0" width="50" height="34.2105263" rx="4"></Rect>
|
|
257
257
|
<Path d="M16.2885088,17.3880702 C16.2885088,19.5302632 17.970614,21.1912281 20.1353509,21.1912281 C20.747193,21.1912281 21.2714035,21.0709649 21.9176316,20.7665789 L21.9176316,19.0932456 C21.3494737,19.6620175 20.8459649,19.8914912 20.2014912,19.8914912 C18.7697368,19.8914912 17.7535088,18.8533333 17.7535088,17.3773684 C17.7535088,15.9782456 18.8018421,14.8744737 20.1353509,14.8744737 C20.8133333,14.8744737 21.3266667,15.1164035 21.9176316,15.694386 L21.9176316,14.0219298 C21.2936842,13.7054386 20.7807018,13.5742105 20.1688596,13.5742105 C18.0150877,13.5742105 16.2885088,15.2689474 16.2885088,17.3880702 Z M12.6403509,15.6180702 C12.6403509,16.0119298 12.8907018,16.22 13.7438596,16.5357018 C15.3608772,17.1272807 15.8400877,17.6512281 15.8400877,18.8092982 C15.8400877,20.22 14.8036842,21.2023684 13.3265789,21.2023684 C12.2447368,21.2023684 11.4580702,20.7764035 10.8031579,19.8148246 L11.7215789,18.9304386 C12.0487719,19.5633333 12.595,19.9026316 13.2730702,19.9026316 C13.9074561,19.9026316 14.3768421,19.4650877 14.3768421,18.8746491 C14.3768421,18.5685965 14.2346491,18.3058772 13.9505263,18.1203509 C13.8077193,18.0324561 13.5244737,17.9018421 12.967807,17.7052632 C11.6326316,17.2249123 11.1748246,16.7107895 11.1748246,15.7067544 C11.1748246,14.5140351 12.1583333,13.6185965 13.4478947,13.6185965 C14.2470175,13.6185965 14.9782456,13.8917544 15.5894737,14.4264035 L14.845614,15.4003509 C14.4753509,14.9853509 14.1250877,14.8101754 13.699386,14.8101754 C13.0866667,14.8101754 12.6403509,15.1591228 12.6403509,15.6180702 Z M8.84614035,21.0271053 L10.267807,21.0271053 L10.267807,13.7390351 L8.84614035,13.7390351 L8.84614035,21.0271053 Z M5.94036842,19.2138596 C5.49380702,19.6173684 4.91349123,19.7933333 3.99501754,19.7933333 L3.61349123,19.7933333 L3.61349123,14.9736842 L3.99501754,14.9736842 C4.91349123,14.9736842 5.471,15.1381579 5.94036842,15.5633333 C6.43199123,16.0008772 6.72764035,16.6794737 6.72764035,17.3774561 C6.72764035,18.077193 6.43199123,18.7763158 5.94036842,19.2138596 Z M4.27968421,13.7390351 L2.19298246,13.7390351 L2.19298246,21.0268421 L4.26870175,21.0268421 C5.37244737,21.0268421 6.16928947,20.7666667 6.86898246,20.1855263 C7.70045614,19.4977193 8.19207018,18.4607018 8.19207018,17.3881579 C8.19207018,15.2372807 6.58516667,13.7390351 4.27968421,13.7390351 Z M31.2458772,13.7390351 L33.1892105,18.634386 L35.1579825,13.7390351 L36.6989474,13.7390351 L33.5505263,21.2141228 L32.7854386,21.2141228 L29.6927193,13.7390351 L31.2458772,13.7390351 Z M37.3418421,21.0270175 L41.3733333,21.0270175 L41.3733333,19.7931579 L38.7622807,19.7931579 L38.7622807,17.8258772 L41.2772807,17.8258772 L41.2772807,16.5914035 L38.7622807,16.5914035 L38.7622807,14.9738596 L41.3733333,14.9738596 L41.3733333,13.7388596 L37.3418421,13.7388596 L37.3418421,21.0270175 Z M43.7347368,17.0942105 L44.15,17.0942105 C45.0580702,17.0942105 45.5392982,16.6997368 45.5392982,15.9671053 C45.5392982,15.2578947 45.0580702,14.8870175 44.1725439,14.8870175 L43.7347368,14.8870175 L43.7347368,17.0942105 Z M44.4228947,13.7387719 C46.062193,13.7387719 47.0020175,14.5260526 47.0020175,15.8905263 C47.0020175,17.0064035 46.4124561,17.7390351 45.3416667,17.9566667 L47.6361404,21.0269298 L45.8878947,21.0269298 L43.9202632,18.0991228 L43.7347368,18.0991228 L43.7347368,21.0269298 L42.3147368,21.0269298 L42.3147368,13.7387719 L44.4228947,13.7387719 Z" id="Shape" fill="#1D1D1B"></Path>
|
|
258
|
-
<Path d="M29.525,19.497193 C30.6787719,17.6929825 30.1518421,15.2961404 28.3478947,14.1424561 L28.3478947,14.1424561 C26.5438596,12.9887719 24.1465789,13.5154386 22.9927193,15.3196491 L22.9927193,15.3196491 C21.8392105,17.1233333 22.3664035,19.5209649 24.1703509,20.6746491 L24.1703509,20.6746491 C25.9742982,21.8283333 28.3714035,21.3008772 29.525,19.497193 Z" id="Path" fill="url(#
|
|
258
|
+
<Path d="M29.525,19.497193 C30.6787719,17.6929825 30.1518421,15.2961404 28.3478947,14.1424561 L28.3478947,14.1424561 C26.5438596,12.9887719 24.1465789,13.5154386 22.9927193,15.3196491 L22.9927193,15.3196491 C21.8392105,17.1233333 22.3664035,19.5209649 24.1703509,20.6746491 L24.1703509,20.6746491 C25.9742982,21.8283333 28.3714035,21.3008772 29.525,19.497193 Z" id="Path" fill="url(#LinearGradient-1)"></Path>
|
|
259
259
|
</G>
|
|
260
260
|
</G>
|
|
261
261
|
</Svg>
|
|
@@ -385,14 +385,14 @@ const TransactionSuccessIcon = ({ size }:IconProps) => {
|
|
|
385
385
|
return (
|
|
386
386
|
<Svg width={`${icon_size}px`} height={`${icon_size}px`} viewBox="0 0 280 280">
|
|
387
387
|
<Defs>
|
|
388
|
-
<
|
|
388
|
+
<LinearGradient x1="10.1840112%" y1="0%" x2="83.3721051%" y2="96.1944687%" id="LinearGradient-1">
|
|
389
389
|
<Stop stop-color="#AB9F5E" offset="0%"></Stop>
|
|
390
390
|
<Stop stop-color="#AB9F5E" stop-opacity="0.5" offset="100%"></Stop>
|
|
391
|
-
</
|
|
391
|
+
</LinearGradient>
|
|
392
392
|
</Defs>
|
|
393
393
|
<G id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
394
394
|
<G id="success-filled-svgrepo-com" transform="translate(14.818182, 14.909091)">
|
|
395
|
-
<Circle id="Oval" stroke="url(#
|
|
395
|
+
<Circle id="Oval" stroke="url(#LinearGradient-1)" stroke-width="30" cx="125.181818" cy="125.090909" r="125"></Circle>
|
|
396
396
|
<Path d="M125,0 C194.035594,0 250,55.9644063 250,125 C250,194.035594 194.035594,250 125,250 C55.9644063,250 0,194.035594 0,125 C0,55.9644063 55.9644063,0 125,0 Z M109.428571,149.660714 L81.6607143,121.875 C78.9525135,119.166799 75.0052249,118.109126 71.3057539,119.100397 C67.6062828,120.091667 64.716667,122.981283 63.7253967,126.680754 C62.7341264,130.380225 63.7917992,134.327514 66.5,137.035714 L101.857143,172.392857 C103.862111,174.413566 106.590895,175.550121 109.4375,175.550121 C112.284105,175.550121 115.012889,174.413566 117.017857,172.392857 L190.232143,99.1607143 C192.977104,96.4631674 194.064403,92.5006372 193.080578,88.77993 C192.096752,85.0592229 189.192965,82.152011 185.47342,81.1638015 C181.753875,80.1755921 177.790066,81.2582195 175.089286,84 L109.428571,149.660714 Z" id="Shape" fill="#7DCD85" fill-rule="nonzero"></Path>
|
|
397
397
|
</G>
|
|
398
398
|
</G>
|
|
@@ -406,15 +406,15 @@ const TransactionErrorIcon = ({size}:IconProps) => {
|
|
|
406
406
|
return (
|
|
407
407
|
<Svg width={`${icon_size}px`} height={`${icon_size}px`} viewBox="0 0 270 270">
|
|
408
408
|
<Defs>
|
|
409
|
-
<
|
|
409
|
+
<LinearGradient x1="24.8993998%" y1="1.46791298%" x2="80.892076%" y2="92.9436978%" id="LinearGradient-1">
|
|
410
410
|
<Stop stop-color="#6E8894" offset="0%"></Stop>
|
|
411
411
|
<Stop stop-color="#6E8894" stop-opacity="0.64" offset="100%"></Stop>
|
|
412
|
-
</
|
|
412
|
+
</LinearGradient>
|
|
413
413
|
</Defs>
|
|
414
414
|
<G id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
415
415
|
<G id="error-filled-svgrepo-com" transform="translate(10.000000, 10.000000)">
|
|
416
416
|
<Path d="M125,0 C194.025,0 250,55.975 250,125 C250,194.025 194.025,250 125,250 C55.975,250 0,194.025 0,125 C0,55.975 55.975,0 125,0 Z M153.6625,78.6625001 L125,107.325 L96.3374999,78.6625001 L78.6625001,96.3374999 L107.325,125 L78.6625001,153.6625 L96.3374999,171.3375 L125,142.675 L153.6625,171.3375 L171.3375,153.6625 L142.675,125 L171.3375,96.3374999 L153.6625,78.6625001 Z" id="Combined-Shape" fill="#D5573B" fill-rule="nonzero"></Path>
|
|
417
|
-
<Circle id="Oval" stroke="url(#
|
|
417
|
+
<Circle id="Oval" stroke="url(#LinearGradient-1)" stroke-width="20" cx="125" cy="125" r="125"></Circle>
|
|
418
418
|
</G>
|
|
419
419
|
</G>
|
|
420
420
|
</Svg>
|