Skip to content

refactor: standardize TwoFactorRequiredModal using GenericModal #39146

@NAME-ASHWANIYADAV

Description

@NAME-ASHWANIYADAV

TwoFactorRequiredModal currently uses raw fuselage primitives (Modal, ModalHeader, ModalTitle, ModalContent, ModalFooter, ModalFooterControllers, Button) to manually compose the modal layout.

The codebase provides a standardized GenericModal component (@rocket.chat/ui-client) that handles all of this via a simple prop-based API, and most modals have already been migrated to use it.

File: apps/meteor/client/views/root/MainLayout/TwoFactorRequiredModal.tsx

This modal should be refactored to use GenericModal for consistency with the rest of the codebase.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: featurePull requests that introduces new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions