@akinon/pz-masterpass 1.32.0-rc.2 → 1.32.0
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/CHANGELOG.md +2 -8
- package/package.json +1 -1
- package/src/views/otp-modal/index.tsx +2 -6
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@ import { formCreator } from '../../utils';
|
|
|
10
10
|
import CountdownTimer from '../countdown-timer/countdown-timer';
|
|
11
11
|
import { OtpForm, OtpFormProps, defaultTranslations } from './otp-form';
|
|
12
12
|
import { useAppDispatch, useAppSelector } from '@akinon/next/redux/hooks';
|
|
13
|
-
import {
|
|
13
|
+
import { setOtpResponse } from '../../redux/reducer';
|
|
14
14
|
import { Image } from '@akinon/next/components/image';
|
|
15
15
|
|
|
16
16
|
export interface MasterpassOtpModalProps {
|
|
@@ -97,10 +97,6 @@ export const MasterpassOtpModal = ({
|
|
|
97
97
|
setOtpTime(otpTimeout + nowInMs);
|
|
98
98
|
};
|
|
99
99
|
|
|
100
|
-
const handleModalVisibility = (visibility: boolean) => {
|
|
101
|
-
dispatch(setOtpModalVisible(visibility));
|
|
102
|
-
};
|
|
103
|
-
|
|
104
100
|
useEffect(() => {
|
|
105
101
|
setIsModalOpen(otp.isModalVisible);
|
|
106
102
|
}, [otp.isModalVisible]);
|
|
@@ -123,7 +119,7 @@ export const MasterpassOtpModal = ({
|
|
|
123
119
|
/>
|
|
124
120
|
}
|
|
125
121
|
open={isModalOpen}
|
|
126
|
-
setOpen={
|
|
122
|
+
setOpen={setIsModalOpen}
|
|
127
123
|
className="w-full sm:w-[28rem] max-h-[90vh] overflow-y-auto"
|
|
128
124
|
>
|
|
129
125
|
<div className="px-6 py-4">
|