Skip to content

Commit

Permalink
[Captcha] Add margin below so not flush against buttons (#3539)
Browse files Browse the repository at this point in the history
  • Loading branch information
imnasnainaec authored Jan 27, 2025
1 parent 7f057f7 commit ed63507
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Login/Captcha.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { toast } from "react-toastify";
import { verifyCaptchaToken } from "backend";
import i18n from "i18n";
import { RuntimeConfig } from "types/runtimeConfig";
import theme from "types/theme";

export interface CaptchaProps {
/** Parent function to call when CAPTCHA succeeds or fails. */
Expand Down Expand Up @@ -42,6 +43,7 @@ export default function Captcha(props: CaptchaProps): ReactElement {
onSuccess={verify}
options={{ language: i18n.resolvedLanguage, theme: "light" }}
siteKey={RuntimeConfig.getInstance().captchaSiteKey()}
style={{ marginBottom: theme.spacing(1) }}
/>
) : (
<Fragment />
Expand Down

0 comments on commit ed63507

Please sign in to comment.