Download wp-calypso/client/landing/stepper/hooks/use-send-email-verification.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 371 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/landing/stepper/hooks/use-send-email-verification.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/landing/stepper/hooks/use-send-email-verification.ts
-
curl -L -o use-send-email-verification.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/landing/stepper/hooks/use-send-email-verification.ts
371 Bytes
| import wpcom from 'calypso/lib/wp'; | |
| export interface ResendEmailVerificationBody { | |
| from?: string; // Helps decide the url of the page after confirmation. | |
| } | |
| export function useSendEmailVerification( body: ResendEmailVerificationBody = {} ) { | |
| return async () => { | |
| return wpcom.req.post( '/me/send-verification-email', { | |
| apiVersion: '1.1', | |
| ...body, | |
| } ); | |
| }; | |
| } | |