Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup #1412

Merged
merged 3 commits into from
Jan 29, 2025
Merged

Cleanup #1412

Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add UserRegistration Jsdoc
  • Loading branch information
w3bdesign committed Jan 29, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit c2b1a40b48d585971ced443ad0e82a8c6e8aa5a3
5 changes: 5 additions & 0 deletions src/components/User/UserRegistration.component.tsx
Original file line number Diff line number Diff line change
@@ -14,6 +14,11 @@ interface IRegistrationData {
lastName: string;
}

/**
* User registration component that handles WooCommerce customer creation
* @function UserRegistration
* @returns {JSX.Element} - Rendered component with registration form
*/
const UserRegistration = () => {
const methods = useForm<IRegistrationData>();
const [registerUser, { loading, error }] = useMutation(CREATE_USER);