-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: apply prettier * chore: edit ready comment * chore: move ts comment
- Loading branch information
1 parent
a324106
commit b421d1a
Showing
152 changed files
with
8,340 additions
and
5,104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
import { Ref } from 'react' | ||
import HCaptcha from '@hcaptcha/react-hcaptcha' | ||
|
||
|
||
const Captcha: React.FC<CaptchaProps> = ({ dark, onVerify }) => { | ||
return <HCaptcha sitekey={process.env.NEXT_PUBLIC_HCAPTCHA_SITEKEY} theme={dark ? 'dark' : 'light'} onVerify={onVerify}/> | ||
return ( | ||
<HCaptcha | ||
sitekey={process.env.NEXT_PUBLIC_HCAPTCHA_SITEKEY} | ||
theme={dark ? 'dark' : 'light'} | ||
onVerify={onVerify} | ||
/> | ||
) | ||
} | ||
|
||
interface CaptchaProps { | ||
dark: boolean | ||
onVerify(token: string, eKey?: string): void | ||
ref?: Ref<HCaptcha> | ||
dark: boolean | ||
onVerify(token: string, eKey?: string): void | ||
ref?: Ref<HCaptcha> | ||
} | ||
|
||
export default Captcha | ||
export default Captcha |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.