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

[NO-CHANGELOG] feat: primary revenue widget hooks - part 2 #900

Merged
merged 30 commits into from
Oct 4, 2023

Conversation

jhesgodi
Copy link
Contributor

Summary

Add a shared context provider for primary revenue views

Why the changes

Enables sharing the state the views and subviews required for smart checkouts and sign order

@jhesgodi jhesgodi requested a review from a team as a code owner September 26, 2023 03:49
@jhesgodi jhesgodi changed the base branch from main to GPR-91-primary-sale-playground-setup September 26, 2023 03:49
@jhesgodi jhesgodi requested a review from a team as a code owner September 26, 2023 03:49
@jhesgodi jhesgodi requested a review from a team September 26, 2023 03:49
@jhesgodi jhesgodi requested review from a team as code owners September 26, 2023 03:49
@jhesgodi jhesgodi changed the base branch from GPR-91-primary-sale-playground-setup to gpr/primary-revenue-widget-setup September 26, 2023 04:38
Copy link
Contributor

@jwhardwick jwhardwick left a comment

Choose a reason for hiding this comment

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

Looks good 🔥

@jhesgodi jhesgodi requested review from a team and proletesseract and removed request for a team October 2, 2023 22:31
Base automatically changed from gpr/primary-revenue-widget-setup to main October 2, 2023 23:25
@@ -35,7 +36,15 @@ export function PrimaryRevenueWidget(props: PrimaryRevenueWidgetProps) {
config, amount, items, fromContractAddress, env, environmentId,
} = props;

console.log('@@@ PrimaryRevenueWidget', config, amount, items, fromContractAddress, env, environmentId);
console.log(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

keeping it to skip eslint check, gets remove in the next PRs.

Copy link
Contributor

Choose a reason for hiding this comment

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

You can add an eslint ignore above the console log

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks.

@jhesgodi
Copy link
Contributor Author

jhesgodi commented Oct 2, 2023

@ZacharyCouchman / @proletesseract May please request your review here. Cheers

};

// eslint-disable-next-line @typescript-eslint/naming-convention
const SharedContext = createContext<SharedContextValues>({
Copy link
Contributor

Choose a reason for hiding this comment

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

Just a question on naming, any reason why you are not calling this PrimaryRevenueContext? Or something like that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No reason, we can name to PrimaryRevenueContext as per your suggestion.

@jhesgodi jhesgodi merged commit d788c9a into main Oct 4, 2023
6 checks passed
@jhesgodi jhesgodi deleted the gpr/primary-revenue-widget-hooks branch October 4, 2023 00:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants