Skip to content

Commit

Permalink
Merge pull request #1403 from ita-social-projects/feature/issue-1703
Browse files Browse the repository at this point in the history
Feature/issue 1703
  • Loading branch information
sashapanasiuk5 authored Sep 18, 2024
2 parents 9e57aed + a4bca9f commit 56746ef
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ interface Props {
const ContactForm = forwardRef((customClass: Props, ref) => {
const [formData, setFormData] = useState({ email: '', message: '' });
const [isVerified, setIsVerified] = useState(false);
const [messageApi, messageContextHolder] = message.useMessage({maxCount: 3});
const [messageApi, messageContextHolder] = message.useMessage({ maxCount: 3 });
const [form] = Form.useForm();
const recaptchaRef = useRef<ReCAPTCHA>(null);
const siteKey = window._env_.RECAPTCHA_SITE_KEY;
Expand Down Expand Up @@ -139,6 +139,7 @@ const ContactForm = forwardRef((customClass: Props, ref) => {
onChange={handleVerify}
onExpired={handleExpiration}
ref={recaptchaRef}
hl='uk'
/>
</div>
<Form.Item>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const PartnersModal = () => {
const { setModal, modalsState: { partners } } = modalStore;
const [form] = Form.useForm();
const [formData, setFormData] = useState({ email: '', message: '' });
const [messageApi, messageContextHolder] = message.useMessage({maxCount: 3});
const [messageApi, messageContextHolder] = message.useMessage({ maxCount: 3 });
const [isVerified, setIsVerified] = useState(false);
const recaptchaRef = useRef<ReCAPTCHA>(null);
const siteKey = window._env_.RECAPTCHA_SITE_KEY;
Expand Down Expand Up @@ -181,6 +181,7 @@ const PartnersModal = () => {
onChange={handleVerify}
onExpired={handleExpiration}
ref={recaptchaRef}
hl='uk'
/>
</div>
<Form.Item>
Expand Down
3 changes: 2 additions & 1 deletion src/features/AdminPage/Login/AdminLogin.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { ERROR_MESSAGES, INVALID_LOGIN_ATTEMPT } from '@/app/common/constants/er
import FRONTEND_ROUTES from '@/app/common/constants/frontend-routes.constants';
import AuthService from '@/app/common/services/auth-service/AuthService';

const AdminLogin:React.FC = () => {
const AdminLogin: React.FC = () => {
const navigate = useNavigate();
const [form] = Form.useForm();
const [isVerified, setIsVerified] = useState(false);
Expand Down Expand Up @@ -70,6 +70,7 @@ const AdminLogin:React.FC = () => {
onChange={handleVerify}
onExpired={handleExpiration}
ref={recaptchaRef}
hl='uk'
/>
</div>
<Form.Item>
Expand Down

0 comments on commit 56746ef

Please sign in to comment.