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

feat: Add accounts paywall #2452

Merged
merged 4 commits into from
Jun 15, 2023
Merged

feat: Add accounts paywall #2452

merged 4 commits into from
Jun 15, 2023

Conversation

cballevre
Copy link
Member

@cballevre cballevre commented Jun 5, 2023

@bundlemon
Copy link

bundlemon bot commented Jun 5, 2023

BundleMon

Unchanged files (2)
Status Path Size Limits
dist/cozy-ui.min.css
20.07KB +5%
dist/cozy-ui.utils.min.css
10.38KB +5%

No change in files bundle size

Groups updated (1)
Status Path Size Limits
transpiled/react/**
598.86KB (+2.07KB +0.35%) -

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

react/Paywall/Paywall.jsx Outdated Show resolved Hide resolved
react/Paywall/MaxAccountsByKonnectorPaywall.jsx Outdated Show resolved Hide resolved
react/Paywall/MaxAccountsByKonnectorPaywall.jsx Outdated Show resolved Hide resolved
react/Paywall/MaxAccountsByKonnectorPaywall.jsx Outdated Show resolved Hide resolved
import fr from './locales/fr.json'
import en from './locales/en.json'

const locales = {
Copy link
Collaborator

Choose a reason for hiding this comment

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

à penser dans une prochaine refacto si t'es un peu juste en temps sur cette PR, mais tu peux faire une méthode withPaywallLocales qui va se charger d'importer les locales et withOnlyLocales. Tu as des exemples avec le Viewer ou les ListItem, ça t'évite de devoir importer les locales dans chaque composant

Copy link
Member Author

Choose a reason for hiding this comment

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

j'ai pris un peu de temps pour utiliser une méthode withPaywallLocales sur tous les Paywalls qui en avait besoin j'y penserais pour mes prochaines PR sur cozy-ui ;)

@cballevre cballevre merged commit b40765c into master Jun 15, 2023
@cballevre cballevre deleted the feat/add-accounts-paywall branch June 15, 2023 12:10
@cozy-bot
Copy link

🎉 This PR is included in version 85.8.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

3 participants