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
Unknown Object (File)
Sun, Nov 24, 4:39 AM
Unknown Object (File)
Sun, Nov 24, 12:52 AM
Unknown Object (File)
Sun, Nov 24, 12:50 AM
Unknown Object (File)
Sun, Nov 24, 12:41 AM
Unknown Object (File)
Sun, Nov 24, 12:20 AM
Unknown Object (File)
Sat, Nov 23, 10:42 PM
Unknown Object (File)
Fri, Nov 15, 9:02 AM
Unknown Object (File)
Thu, Nov 14, 8:54 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.