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
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
Unknown Object (File)
Oct 19 2024, 10:49 AM
Unknown Object (File)
Oct 18 2024, 7:59 PM
Unknown Object (File)
Oct 18 2024, 7:13 PM
Unknown Object (File)
Oct 13 2024, 2:27 PM

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.