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

Add customData and acceptanceLanguage Props #58

Merged
merged 5 commits into from
Sep 20, 2022

Conversation

timothymorse
Copy link
Contributor

@timothymorse timothymorse commented Sep 16, 2022

Description

This brings the ability to add custom data to acceptance events with a new customData prop. Additionally, you can now set the acceptance language (using a new acceptanceLanguage prop) that gets displayed as part of your clickwrap group. Note: setting acceptance language requires the group to be dynamic.

Testing

Unit tests should cover making sure the props get set correctly. But, to test locally, you should:

  • Set the customData to an object (e.g., {key_1: "test", key_2: 3}) and trigger an acceptance. With this acceptance, if you go to the Clickwrap UI and view the acceptance event, you should see the custom data details in the right panel.
  • Set the acceptanceLanguage prop to a string and load the clickwrap in a test environment. In the loaded environment, you should see the acceptance language be presented.

@timothymorse timothymorse self-assigned this Sep 16, 2022
@timothymorse timothymorse requested review from a team September 16, 2022 21:20
@timothymorse timothymorse marked this pull request as ready for review September 16, 2022 21:20
Copy link

@oshoubber oshoubber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants