Skip to content

Extension for size string #7257

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

Merged
merged 3 commits into from
Dec 19, 2021
Merged

Conversation

cinqmilleans
Copy link
Contributor

Resolved / Related Issues
The code for displaying a size in a localized string is duplicated in many places.

Details of Changes
This pr adds the ToSizeString and ToLongSizeString extensions and uses them wherever possible. This pr is a refactoring without adding any functionality or improving performance, only a more maintainable and centralized code.

Validation
How did you test these changes?

  • Built and ran the app
  • Tested the changes for accessibility

@yaira2 yaira2 changed the title extension for size string Extension for size string Dec 10, 2021
@yaira2 yaira2 requested a review from winston-de December 10, 2021 15:47
@cinqmilleans
Copy link
Contributor Author

cinqmilleans commented Dec 17, 2021

@yaira2 @winston-de Merge fixed.

@yaira2 yaira2 added ready to merge Pull requests that are approved and ready to merge and removed needs - code review labels Dec 19, 2021
@yaira2 yaira2 merged commit 6ad7271 into files-community:main Dec 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Pull requests that are approved and ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants