Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[native] Improve device labels on device list screen
Summary: Resolves [[ https://linear.app/comm/issue/ENG-9136/rethink-device-description-if-current-device-is-primary | ENG-9136 ]] The previous label for current primary device looked weird with two parentheses: ``` someDeviceID (primary) (this device) ``` Depends on D13262 Test Plan: - Opened devices screen on native and verified they're now displayed correctly {F3000688} - JS playground: ``` lang=js function getLabel(deviceID, isPrimary, isThisDevice) { // contents of useMemo } getLabel('123456789', false, false) // '1234567' getLabel('123456789', false, true) // '1234567 (this device)' getLabel('123456789', true, false) // '1234567 (primary)' getLabel('123456789', true, true) // '1234567 (primary, this device)' ``` Reviewers: ashoat, varun Reviewed By: ashoat Subscribers: tomek Differential Revision: https://phab.comm.dev/D13747
- Loading branch information