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

Models the Action for the ButtonComponent #4353

Merged
merged 27 commits into from
Oct 14, 2024

Conversation

JayShortway
Copy link
Member

@JayShortway JayShortway commented Oct 4, 2024

As the title says. No implementation whatsoever. Will do that in follow-ups.

@JayShortway JayShortway marked this pull request as ready for review October 7, 2024 10:21
@JayShortway JayShortway requested review from a team and joshdholtz October 7, 2024 10:22
Copy link
Member

@joshdholtz joshdholtz left a comment

Choose a reason for hiding this comment

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

A small nit on a rename but otherwise this looks good to me! Approving because I mentioned this on a PR further down the chain that I requested changes on

Comment on lines +42 to +45
func onClick() {
// swiftlint:disable:next todo
// TODO Handle the configured Action.
}
Copy link
Member

Choose a reason for hiding this comment

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

I mentioned this in a PR further down the chain but I would probably name this to performAction()since it could be a click or a tap 😇 Just a nit of mine 😅

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh yes, great point. I'll rename it in the other PR, since this function is moved in that PR as well.

Base automatically changed from paywalls-components/button-component-1 to main October 14, 2024 10:13
# Conflicts:
#	RevenueCatUI/Templates/Components/Button/ButtonComponentView.swift
#	RevenueCatUI/Templates/Components/Button/ButtonComponentViewModel.swift
#	Sources/Paywalls/Components/PaywallButtonComponent.swift
@JayShortway JayShortway enabled auto-merge (squash) October 14, 2024 10:18
@JayShortway JayShortway merged commit 2d0e236 into main Oct 14, 2024
6 of 7 checks passed
@JayShortway JayShortway deleted the paywalls-components/button-component-2 branch October 14, 2024 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants