Page MenuHomePhabricator

[web] Refactor `classNames` in `threadRow` to take object instead of array
ClosedPublic

Authored by abosh on Mar 29 2022, 10:52 AM.
Tags
None
Referenced Files
F2905824: D3542.diff
Sun, Oct 6, 8:21 AM
Unknown Object (File)
Tue, Sep 24, 1:15 AM
Unknown Object (File)
Tue, Sep 24, 1:15 AM
Unknown Object (File)
Mon, Sep 23, 1:34 AM
Unknown Object (File)
Mon, Sep 9, 12:33 AM
Unknown Object (File)
Sun, Sep 8, 2:46 PM
Unknown Object (File)
Aug 29 2024, 11:43 PM
Unknown Object (File)
Aug 27 2024, 8:49 AM

Details

Summary

Pass object instead of array into classNames to make code more readable. Cut ternary operator and made everything more symmetric.

Test Plan

Ensured that output was the same before and after the change in Chrome/Safari.

Diff Detail

Repository
rCOMM Comm
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

abosh added 1 blocking reviewer(s): atul.
This revision was not accepted when it landed; it landed in state Needs Review.Mar 29 2022, 11:09 AM
This revision was automatically updated to reflect the committed changes.
This revision is now accepted and ready to land.Mar 29 2022, 3:01 PM
This revision now requires review to proceed.Mar 29 2022, 3:01 PM
This revision is now accepted and ready to land.Mar 30 2022, 10:15 PM
This revision was landed with ongoing or failed builds.Apr 1 2022, 4:46 PM
This revision was automatically updated to reflect the committed changes.