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
F3357654: D3542.id10971.diff
Sun, Nov 24, 12:52 AM
F3357651: D3542.id10793.diff
Sun, Nov 24, 12:50 AM
F3357622: D3542.id10783.diff
Sun, Nov 24, 12:41 AM
F3357572: D3542.id10972.diff
Sun, Nov 24, 12:20 AM
F3357175: D3542.diff
Sat, Nov 23, 10:42 PM
Unknown Object (File)
Fri, Nov 15, 9:02 AM
Unknown Object (File)
Thu, Nov 14, 8:54 AM
Unknown Object (File)
Tue, Nov 5, 1:24 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.