@opexa/portal-components 0.0.600 → 0.0.601

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.
@@ -1,4 +1,4 @@
1
1
  import type { KYCDefaultProps } from './KYCDefault';
2
2
  import type { KYCSumsubProps } from './KYCSumsub';
3
3
  export type KYCProps = KYCDefaultProps | KYCSumsubProps;
4
- export declare function KYC(props: KYCProps): import("react/jsx-runtime").JSX.Element | null;
4
+ export declare function KYC(props: KYCProps): import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,6 @@
1
1
  'use client';
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import dynamic from 'next/dynamic';
4
- import { useShallow } from 'zustand/shallow';
5
- import { useGlobalStore } from '../../client/hooks/useGlobalStore.js';
6
4
  const KYCDefault = dynamic(() => import('./KYCDefault/index.js').then((m) => m.KYCDefault), {
7
5
  ssr: false,
8
6
  loading: () => null,
@@ -12,10 +10,10 @@ const KYCSumsub = dynamic(() => import('./KYCSumsub.js').then((m) => m.KYCSumsub
12
10
  loading: () => null,
13
11
  });
14
12
  export function KYC(props) {
15
- const touched = useGlobalStore(useShallow((ctx) => ctx.kyc['~touched']));
16
- if (!touched)
17
- return null;
18
- if (props.provider === 'sumsub')
13
+ if (props.provider === 'sumsub') {
19
14
  return _jsx(KYCSumsub, { ...props });
20
- return _jsx(KYCDefault, { ...props });
15
+ }
16
+ else {
17
+ return _jsx(KYCDefault, { ...props });
18
+ }
21
19
  }
@@ -1,3 +1,3 @@
1
1
  import type { KYCReminderProps } from './KYCReminder.lazy';
2
- export declare function KYCReminder(props: KYCReminderProps): import("react/jsx-runtime").JSX.Element | undefined;
2
+ export declare function KYCReminder(props: KYCReminderProps): import("react/jsx-runtime").JSX.Element;
3
3
  export type { KYCReminderProps };
@@ -1,14 +1,10 @@
1
1
  'use client';
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import dynamic from 'next/dynamic';
4
- import { useShallow } from 'zustand/shallow';
5
- import { useGlobalStore } from '../../client/hooks/useGlobalStore.js';
6
4
  const Component = dynamic(() => import('./KYCReminder.lazy.js').then((m) => m.KYCReminder), {
7
5
  ssr: false,
8
6
  loading: () => null,
9
7
  });
10
8
  export function KYCReminder(props) {
11
- const touched = useGlobalStore(useShallow((ctx) => ctx.kycReminder['~touched']));
12
- if (touched)
13
- return _jsx(Component, { ...props });
9
+ return _jsx(Component, { ...props });
14
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opexa/portal-components",
3
- "version": "0.0.600",
3
+ "version": "0.0.601",
4
4
  "exports": {
5
5
  "./ui/*": {
6
6
  "types": "./dist/ui/*/index.d.ts",