Skip to content

Remove isMobileWidth injection #1882

@JammingBen

Description

@JammingBen

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.

Metadata

Metadata

Assignees

Labels

Type:MaintenanceE.g. technical debt, packaging, etc.

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions