gbc-kyc-kit 2.3.11 → 2.3.12

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.
@@ -39225,7 +39225,7 @@ const DocumentReaderController = (dataDocument, clientId, authorize, eventId, so
39225
39225
  const [dualMode, setDualMode] = useState(dualModeRequired);
39226
39226
  const webcamRef = useRef(null);
39227
39227
  const [activateCamera, setActivateCamera] = useState(false);
39228
- const [uploadDocumentByPhone, setUploadDocumentByPhone] = useState(false);
39228
+ const [uploadDocumentByPhone, setUploadDocumentByPhone] = useState(true);
39229
39229
  useEffect(() => {
39230
39230
  if (countryCodeAllowed && (geolocation == null ? void 0 : geolocation.data_connection.isocode)) {
39231
39231
  if (countryCodeAllowed.length !== 0 && !countryCodeAllowed.some((item) => item === (geolocation == null ? void 0 : geolocation.data_connection.isocode))) {
@@ -39534,12 +39534,16 @@ function UploadByGallery({
39534
39534
  startUpload,
39535
39535
  setActivateCamera
39536
39536
  }) {
39537
+ const handleClick = () => {
39538
+ var _a;
39539
+ (_a = fileInputRef.current) == null ? void 0 : _a.click();
39540
+ };
39537
39541
  return /* @__PURE__ */ jsx$1("div", {
39538
39542
  className: "drag-zone",
39539
39543
  children: /* @__PURE__ */ jsx$1(Box$1, {
39540
39544
  className: "drag-and-drop-container",
39541
39545
  children: /* @__PURE__ */ jsx$1(Box$1, {
39542
- onClick: () => setActivateCamera(true),
39546
+ onClick: () => startUpload ? handleClick() : setActivateCamera(true),
39543
39547
  position: "relative",
39544
39548
  zIndex: 1,
39545
39549
  width: "100%",
@@ -39549,7 +39553,8 @@ function UploadByGallery({
39549
39553
  justifyContent: "center",
39550
39554
  alignItems: "center",
39551
39555
  padding: 2,
39552
- children: startUpload ? /* @__PURE__ */ jsxs(Fragment, {
39556
+ children: startUpload ? /* @__PURE__ */ jsxs(Box$1, {
39557
+ className: "test",
39553
39558
  children: [/* @__PURE__ */ jsxs("div", {
39554
39559
  style: {
39555
39560
  display: "flex",