@opexa/portal-components 0.0.1048 → 0.0.1050
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/components/PortalProvider/AppOnlyComponents.d.ts +3 -1
- package/dist/components/PortalProvider/AppOnlyComponents.js +2 -2
- package/dist/components/PortalProvider/PortalProvider.d.ts +2 -1
- package/dist/components/PortalProvider/PortalProvider.js +2 -2
- package/dist/components/TransactionRecords/TransactionRecordsTable.js +1 -0
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ import { Protected } from '../Protected/index.js';
|
|
|
7
7
|
import { AddSafeArea } from './AddSafeArea.js';
|
|
8
8
|
import { AndroidRoutingHandler } from './AndroidRoutingHandler.js';
|
|
9
9
|
import PushNotification from './PushNotifications.js';
|
|
10
|
-
export function AppOnlyComponents() {
|
|
10
|
+
export function AppOnlyComponents({ enablePushNotif = true, }) {
|
|
11
11
|
const platform = Capacitor.getPlatform();
|
|
12
12
|
const isNative = platform === 'android' || platform === 'ios';
|
|
13
13
|
useEffect(() => {
|
|
@@ -17,5 +17,5 @@ export function AppOnlyComponents() {
|
|
|
17
17
|
}, [isNative]);
|
|
18
18
|
if (!isNative)
|
|
19
19
|
return null;
|
|
20
|
-
return (_jsxs(_Fragment, { children: [_jsx(Protected, { children: _jsx(PushNotification, {}) }), _jsx(AndroidRoutingHandler, {}), _jsx(AddSafeArea, {})] }));
|
|
20
|
+
return (_jsxs(_Fragment, { children: [enablePushNotif && (_jsx(Protected, { children: _jsx(PushNotification, {}) })), _jsx(AndroidRoutingHandler, {}), _jsx(AddSafeArea, {})] }));
|
|
21
21
|
}
|
|
@@ -2,5 +2,6 @@ import { type ReactNode } from 'react';
|
|
|
2
2
|
import { type ProvidersProps } from './Providers';
|
|
3
3
|
export interface PortalProviderProps extends ProvidersProps {
|
|
4
4
|
children: ReactNode;
|
|
5
|
+
enablePushNotif?: boolean;
|
|
5
6
|
}
|
|
6
|
-
export declare function PortalProvider({ recaptchaSiteKey, isNonRegulated, children, }: PortalProviderProps): Promise<import("react/jsx-runtime").JSX.Element>;
|
|
7
|
+
export declare function PortalProvider({ recaptchaSiteKey, isNonRegulated, children, enablePushNotif, }: PortalProviderProps): Promise<import("react/jsx-runtime").JSX.Element>;
|
|
@@ -15,7 +15,7 @@ import { SetupCellxpertCxd } from './SetupCellxpertCxd.js';
|
|
|
15
15
|
import { SetupDomain } from './SetupDomain.js';
|
|
16
16
|
import { Snackbar } from './Snackbar.js';
|
|
17
17
|
import { SocialAccountLinkObserver } from './SocialAccountLinkObserver.js';
|
|
18
|
-
export async function PortalProvider({ recaptchaSiteKey, isNonRegulated, children, }) {
|
|
18
|
+
export async function PortalProvider({ recaptchaSiteKey, isNonRegulated, children, enablePushNotif = true, }) {
|
|
19
19
|
const queryClient = getQueryClient();
|
|
20
20
|
await Promise.allSettled([
|
|
21
21
|
prefetchPlatformQuery(),
|
|
@@ -23,5 +23,5 @@ export async function PortalProvider({ recaptchaSiteKey, isNonRegulated, childre
|
|
|
23
23
|
prefetchAccountQuery(),
|
|
24
24
|
prefetchWalletQuery(),
|
|
25
25
|
]);
|
|
26
|
-
return (_jsxs(Fragment, { children: [_jsx(Providers, { isNonRegulated: isNonRegulated, recaptchaSiteKey: recaptchaSiteKey, children: _jsxs(HydrationBoundary, { state: dehydrate(queryClient), children: [children, _jsx(SessionWatcher, {}), _jsx(Suspense, { children: _jsx(SetupDomain, {}) }), _jsx(Suspense, { children: _jsx(SetupCellxpertCxd, {}) }), _jsx(Suspense, { children: _jsx(SetupBtag, {}) }), _jsx(Suspense, { children: _jsx(AppOnlyComponents, {}) })] }) }), _jsx(Snackbar, {}), _jsx(Suspense, { children: _jsx(SocialAccountLinkObserver, {}) }), _jsx(Suspense, { children: _jsx(FeatureFlag, {}) })] }));
|
|
26
|
+
return (_jsxs(Fragment, { children: [_jsx(Providers, { isNonRegulated: isNonRegulated, recaptchaSiteKey: recaptchaSiteKey, children: _jsxs(HydrationBoundary, { state: dehydrate(queryClient), children: [children, _jsx(SessionWatcher, {}), _jsx(Suspense, { children: _jsx(SetupDomain, {}) }), _jsx(Suspense, { children: _jsx(SetupCellxpertCxd, {}) }), _jsx(Suspense, { children: _jsx(SetupBtag, {}) }), _jsx(Suspense, { children: _jsx(AppOnlyComponents, { enablePushNotif: enablePushNotif }) })] }) }), _jsx(Snackbar, {}), _jsx(Suspense, { children: _jsx(SocialAccountLinkObserver, {}) }), _jsx(Suspense, { children: _jsx(FeatureFlag, {}) })] }));
|
|
27
27
|
}
|
|
@@ -71,6 +71,7 @@ export function TransactionRecordsTable(props) {
|
|
|
71
71
|
}) }), _jsx(Table.Cell, { className: "!py-1", children: formatNumber(data.currentBalance, {
|
|
72
72
|
currency: localeInfo.currency.code,
|
|
73
73
|
minDecimalPlaces: 2,
|
|
74
|
+
truncate: false
|
|
74
75
|
}) }), _jsx(Table.Cell, { className: "!py-1", children: formatNumber(data.currentBonusBalance, {
|
|
75
76
|
currency: localeInfo.currency.code,
|
|
76
77
|
minDecimalPlaces: 2,
|