useTileSizeThresholds(size: number) computes both color-based thresholds and whether size exceeds download limit. moves duplicated functionality into a single reusable hook. Move associated constants into a separate file for findability.
Overview
This PR includes the following proposed change(s):
{List all the changes, if possible add the linked issue/ticket #}
Type of change
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[x] Refactoring / Documentation
[ ] Version change
if your change is a breaking change, please add breaking change label to this PR
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Screenshots
Please add any relevant UI screenshots if applicable.
Checklist:
[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have made corresponding changes to the documentation
[ ] New and existing unit tests pass locally with my changes
useTileSizeThresholds(size: number)
computes both color-based thresholds and whether size exceeds download limit. moves duplicated functionality into a single reusable hook. Move associated constants into a separate file for findability.Overview
This PR includes the following proposed change(s):
Type of change
if your change is a breaking change, please add
breaking change
label to this PRHow Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Screenshots
Please add any relevant UI screenshots if applicable.
Checklist: