-
Notifications
You must be signed in to change notification settings - Fork 13.5k
refactor(ui): replace obsolete TextCopy with CodeSnippet in TwoFactorTOTP #39956
Copy link
Copy link
Open
Labels
type: featurePull requests that introduces new featurePull requests that introduces new feature
Description
Current Behavior
The TwoFactorTOTP view component currently relies on the deprecated <TextCopy> component to display the TOTP backup secret string.
This happens to be the absolute final usage of the TextCopy component in the .tsx codebase.
Expected Behavior
The obsolete <TextCopy> component should be replaced with the globally standardized @rocket.chat/fuselage <CodeSnippet> component.
Because this is the final consumer, the TextCopy component itself should be fully unlinked and completely deleted from apps/meteor/client/components/TextCopy to permanently clean up the obsolete architecture and trim the bundle.
Tasks
- Replace
<TextCopy>with<CodeSnippet>in apps/meteor/client/views/account/security/TwoFactorTOTP.tsx - Delete legacy
TextCopycomponent directory entirely from the client codebase.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type: featurePull requests that introduces new featurePull requests that introduces new feature