Page MenuHomePhabricator

[web] cleanup enum option component when there is no icon
ClosedPublic

Authored by ginsu on Feb 13 2024, 11:06 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, May 5, 10:58 AM
Unknown Object (File)
Fri, Apr 26, 1:35 AM
Unknown Object (File)
Apr 8 2024, 11:19 AM
Unknown Object (File)
Apr 8 2024, 11:19 AM
Unknown Object (File)
Apr 8 2024, 11:19 AM
Unknown Object (File)
Apr 8 2024, 11:19 AM
Unknown Object (File)
Apr 8 2024, 11:19 AM
Unknown Object (File)
Mar 6 2024, 9:40 PM
Subscribers

Details

Summary

As I was going through the modals, I noticed a modal that used the EnumSettingsOption but didn't have a icon with the option. The spacing/UI looked a bit off, so I took a second to fix it up

Screenshot 2024-02-14 at 2.09.26 AM.png (1×3 px, 844 KB)

Depends on D11035

Test Plan

Confirmed that the EnumSettingsOption looks fine with + w/o an icon

Screenshot 2024-02-14 at 2.10.38 AM.png (2×3 px, 892 KB)

Screenshot 2024-02-14 at 2.10.25 AM.png (2×3 px, 831 KB)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul added inline comments.
web/components/enum-settings-option.react.js
92–103 ↗(On Diff #37054)

Wouldn't hurt to memoize, but probably wouldn't make much of a practical difference.

This revision is now accepted and ready to land.Feb 14 2024, 1:38 PM

address feedback + rebase before landing