User Story
As a frontend developer, I want to remove the obsolete isMobileWidth injection and use the useIsMobile composable instead
so that the code is more consistent, maintainable, and modern, and we have a unified way to detect mobile viewports.
User Value
- Reduces technical debt by removing an outdated injection.
- Ensures consistent usage of the useIsMobile composable across the project.
Acceptance Criteria
- All instances of the isMobileWidth injection are replaced with the useIsMobile composable.
- The isMobileWidth injection is completely removed from the codebase and tests.
Original Ticket
We recently added the useIsMobile composable to the design-system to determine if the viewport is the size of a mobile device. This makes the isMobileWidth injection obsolete, hence we should remove it in favor of the useIsMobile composable.
User Story
As a frontend developer, I want to remove the obsolete isMobileWidth injection and use the useIsMobile composable instead
so that the code is more consistent, maintainable, and modern, and we have a unified way to detect mobile viewports.
User Value
Acceptance Criteria
Original Ticket
We recently added the
useIsMobilecomposable to the design-system to determine if the viewport is the size of a mobile device. This makes theisMobileWidthinjection obsolete, hence we should remove it in favor of theuseIsMobilecomposable.