ui-soxo-bootstrap-core 2.6.1-dev.20 → 2.6.1-dev.22

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.
@@ -306,6 +306,8 @@ function LoginPhone({ history, appSettings }) {
306
306
  *
307
307
  */
308
308
  const sendAuthenticationOtp = () => {
309
+ if (loading) return;
310
+
309
311
  // Reset previous error
310
312
  setModeError(false);
311
313
 
@@ -445,6 +447,8 @@ function LoginPhone({ history, appSettings }) {
445
447
  * Otp resend Logic
446
448
  */
447
449
  const handleResendOTP = () => {
450
+ if (loading) return;
451
+
448
452
  setOtpValue('');
449
453
  setModeError(false);
450
454
  setOtpError(false);
@@ -714,7 +718,7 @@ function LoginPhone({ history, appSettings }) {
714
718
 
715
719
  {!otpVerification ? (
716
720
  <div className="otp-container">
717
- <Button type="primary" onClick={sendAuthenticationOtp} style={{ marginTop: '6px' }}>
721
+ <Button loading={loading} type="primary" onClick={sendAuthenticationOtp} style={{ marginTop: '6px' }}>
718
722
  Send OTP
719
723
  </Button>
720
724
  </div>
@@ -760,7 +764,7 @@ function LoginPhone({ history, appSettings }) {
760
764
  </div>
761
765
  </div>
762
766
  {!otpSuccess && (
763
- <Button type="primary" disabled={otpExpired} onClick={verifyOtp} style={{ marginTop: 16 }}>
767
+ <Button loading={loading} type="primary" disabled={otpExpired} onClick={verifyOtp} style={{ marginTop: 16 }}>
764
768
  Verify OTP
765
769
  </Button>
766
770
  )}
@@ -3,7 +3,7 @@
3
3
  * Handles navigation and action controls for a multi-step process,
4
4
  * including dynamic content rendering and process completion actions.
5
5
  */
6
- import React, { useEffect, useState } from 'react';
6
+ import React, { useState, useEffect } from 'react';
7
7
  import { Skeleton } from 'antd';
8
8
  import { Button } from '../../lib';
9
9
  import './action-buttons.scss';
@@ -34,10 +34,6 @@ export default function ActionButtons({
34
34
  }
35
35
  }, [isEndStep]);
36
36
 
37
- useEffect(() => {
38
- setShowNextProcess(false);
39
- }, [steps]);
40
-
41
37
  return (
42
38
  <div className="action-buttons-shell">
43
39
  <div className="action-body">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ui-soxo-bootstrap-core",
3
- "version": "2.6.1-dev.20",
3
+ "version": "2.6.1-dev.22",
4
4
  "description": "All the Core Components for you to start",
5
5
  "keywords": [
6
6
  "all in one"