Skip to content

Commit

Permalink
Remove splash, it seems like it takes a long time a render the captcha
Browse files Browse the repository at this point in the history
  • Loading branch information
eunjuhuss committed Apr 22, 2024
1 parent 3772b3a commit 06cc89f
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/components/Signup/SignupCaptcha.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { IconProp } from "@fortawesome/fontawesome-svg-core";
import { faRedo } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { CaptchaRequest, GetCaptchaResponse, getCaptchaRequest, sendCaptchaResponse } from "apis/eduidSignup";
import Splash from "components/Common/Splash";
import { useAppDispatch, useAppSelector } from "eduid-hooks";
import React, { Fragment, useContext, useEffect, useState } from "react";
import { FormattedMessage } from "react-intl";
Expand Down Expand Up @@ -108,12 +107,10 @@ function InternalCaptcha(props: CaptchaProps) {

return (
<React.Fragment>
<Splash showChildren={captchaResponse !== undefined}>
<figure className="captcha-responsive">
<img alt="captcha" className="captcha-image" src={captchaResponse?.captcha_img} />
<audio controls className="captcha-audio" src={captchaResponse?.captcha_audio} />
</figure>
</Splash>
<figure className="captcha-responsive">
<img alt="captcha" className="captcha-image" src={captchaResponse?.captcha_img} />
<audio controls className="captcha-audio" src={captchaResponse?.captcha_audio} />
</figure>
<div className="icon-text">
<button
type="button"
Expand Down

0 comments on commit 06cc89f

Please sign in to comment.