• Lyza Danger Gardner's avatar
    Update `MenuItem` to take `IconComponent`s, `leftChannelContent` · 67b517fb
    Lyza Danger Gardner authored
    Previously, `MenuItem`'s `icon` prop accepted a string, which could be:
    
    - the name of a registered icon
    - a URL (in which case an `img` with that URL as `src` was rendered)
    - the string "blank" (in which case space was added at left)
    
    This became over-complex when migrating to use updated icon components.
    Now the `icon` prop expects an `IconComponent`, but `MenuItem` also
    takes a `leftChannelContent` prop. This allows consumers to set any
    content in the left channel — e.g. an image instead of an icon — and
    reduces the complexity of this component.
    
    `GroupListItem` has been updated to set `leftChannelContent` as needed
    instead of passing "blank" or a URL to an image as the `icon` prop.
    
    Other components updated to provide `IconComponent`s instead of strings.
    67b517fb
Name
Last commit
Last update
..
Annotation Loading commit data...
GroupList Loading commit data...
hooks Loading commit data...
test Loading commit data...
AnnotationView.tsx Loading commit data...
AutocompleteList.tsx Loading commit data...
Excerpt.tsx Loading commit data...
FilterSelect.tsx Loading commit data...
FilterStatus.tsx Loading commit data...
HelpPanel.tsx Loading commit data...
HypothesisApp.js Loading commit data...
LaunchErrorPanel.tsx Loading commit data...
LoggedOutMessage.tsx Loading commit data...
LoginPromptPanel.tsx Loading commit data...
MarkdownEditor.tsx Loading commit data...
MarkdownView.js Loading commit data...
Menu.tsx Loading commit data...
MenuArrow.tsx Loading commit data...
MenuItem.tsx Loading commit data...
MenuKeyboardNavigation.js Loading commit data...
MenuSection.js Loading commit data...
ModerationBanner.js Loading commit data...
NotebookFilters.tsx Loading commit data...
NotebookResultCount.tsx Loading commit data...
NotebookView.tsx Loading commit data...
PaginatedThreadList.js Loading commit data...
PaginationNavigation.tsx Loading commit data...
SearchInput.js Loading commit data...
SelectionTabs.tsx Loading commit data...
ShareAnnotationsPanel.tsx Loading commit data...
ShareLinks.tsx Loading commit data...
SidebarContentError.js Loading commit data...
SidebarPanel.tsx Loading commit data...
SidebarView.tsx Loading commit data...
Slider.js Loading commit data...
SortMenu.tsx Loading commit data...
StreamSearchInput.js Loading commit data...
StreamView.tsx Loading commit data...
StyledText.js Loading commit data...
TagEditor.tsx Loading commit data...
TagList.js Loading commit data...
TagListItem.tsx Loading commit data...
Thread.tsx Loading commit data...
ThreadCard.tsx Loading commit data...
ThreadList.tsx Loading commit data...
ToastMessages.tsx Loading commit data...
TopBar.tsx Loading commit data...
Tutorial.tsx Loading commit data...
UserMenu.tsx Loading commit data...
VersionInfo.tsx Loading commit data...