Dependencies Updates, Sidebar fixes, default plan, Radix single package (#297)
* Refactor Radix UI imports and update package dependencies, fix Sidebar "group" references, add default value to plan picker to preselect a plan
This commit is contained in:
committed by
GitHub
parent
1d734e6818
commit
50337298fd
@@ -9,6 +9,7 @@ import { Captcha } from './captcha-provider';
|
||||
export function CaptchaTokenSetter(props: {
|
||||
siteKey: string | undefined;
|
||||
options?: TurnstileProps;
|
||||
nonce?: string;
|
||||
}) {
|
||||
const { setToken, setInstance } = useContext(Captcha);
|
||||
|
||||
@@ -31,6 +32,9 @@ export function CaptchaTokenSetter(props: {
|
||||
}}
|
||||
siteKey={props.siteKey}
|
||||
onSuccess={setToken}
|
||||
scriptOptions={{
|
||||
nonce: props.nonce,
|
||||
}}
|
||||
{...options}
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user