Skip to content

Commit f3410c0

Browse files
committed
[SM-254] remove old captcha implementation
1 parent 33165b5 commit f3410c0

File tree

6 files changed

+3
-122
lines changed

6 files changed

+3
-122
lines changed

src/components/Captcha/WAFScriptLoad.js

Lines changed: 0 additions & 29 deletions
This file was deleted.

src/components/Captcha/captchaFetchHandler.js

Lines changed: 0 additions & 34 deletions
This file was deleted.

src/components/Captcha/modal/CaptchaModal.css

Lines changed: 0 additions & 24 deletions
This file was deleted.

src/components/Captcha/modal/CaptchaModal.jsx

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/components/FeedbackFormModal/index.js

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,15 @@
1-
import { Fragment, useEffect, useState } from "react";
1+
import { Fragment, useState } from "react";
22
import OpenFormButton from "./OpenFormButton";
33
import "./styles.css";
44
import FeedbackFormModal from "./FeedbackFormModal";
55
import { sendFeedbackSnetAPI } from "../../config/SupportAPI";
6-
import CaptchaModal from "../Captcha/modal/CaptchaModal";
7-
import { loadCaptchaScript } from "../Captcha/WAFScriptLoad";
86

97
const FeedbackForm = () => {
108
const [isModalVisible, setIsModalVisible] = useState(false);
119

12-
useEffect(() => {
13-
try {
14-
loadCaptchaScript();
15-
} catch (err) {
16-
console.error("CAPTCHA script error: ", err);
17-
}
18-
}, []);
19-
2010
return (
2111
<Fragment>
22-
<CaptchaModal />
12+
<div id="captchaContainer" />
2313
<FeedbackFormModal
2414
sendFeedbackAPI={sendFeedbackSnetAPI}
2515
isModalVisible={isModalVisible}

src/components/ServiceDetails/AboutService/ServiceDemo/Purchase/ExpiredSession/GeneralAccountWallet/PaymentPopup/Purchase/PurchaseAlert.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,15 @@
1-
import React, { useEffect, useState } from "react";
1+
import React, { useState } from "react";
22
import { withStyles } from "@mui/styles";
33

44
import AlertBox from "../../../../../../../../common/AlertBox";
55
import StyledButton from "../../../../../../../../common/StyledButton";
66
import { useStyles } from "./styles";
77
import { sendFeedbackSnetAPI } from "../../../../../../../../../config/SupportAPI";
88
import FeedbackFormModal from "../../../../../../../../FeedbackFormModal/FeedbackFormModal";
9-
import { loadCaptchaScript } from "../../../../../../../../Captcha/WAFScriptLoad";
109

1110
const PurchaseAlert = ({ classes, alert, handleCancel }) => {
1211
const [isModalVisible, setIsModalVisible] = useState(false);
1312

14-
useEffect(() => {
15-
try {
16-
loadCaptchaScript();
17-
} catch (err) {
18-
console.error("CAPTCHA script error: ", err);
19-
}
20-
}, []);
21-
2213
return (
2314
<div className={classes.purchaseErrorContainer}>
2415
<AlertBox type={alert.type} message={alert.message} />

0 commit comments

Comments
 (0)