Rename ListEntry to ListItem (#3371)

This PR renames the `ListEntry` component to `ListItem` to better
reflect its intent.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2023-11-20 16:13:06 -05:00 committed by GitHub
parent 4f4ef4a357
commit 652e3b0bb6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 80 additions and 83 deletions

View file

@ -31,7 +31,7 @@ use workspace::{
notifications::NotifyResultExt,
register_deserializable_item,
searchable::{SearchEvent, SearchOptions, SearchableItem},
ui::{ContextMenu, Icon, IconElement, Label, ListEntry},
ui::{ContextMenu, Icon, IconElement, Label, ListItem},
CloseActiveItem, NewCenterTerminal, Pane, ToolbarItemLocation, Workspace, WorkspaceId,
};
@ -300,14 +300,11 @@ impl TerminalView {
cx: &mut ViewContext<Self>,
) {
self.context_menu = Some(ContextMenu::build(cx, |menu, _| {
menu.action(
ListEntry::new("clear", Label::new("Clear")),
Box::new(Clear),
)
.action(
ListEntry::new("close", Label::new("Close")),
Box::new(CloseActiveItem { save_intent: None }),
)
menu.action(ListItem::new("clear", Label::new("Clear")), Box::new(Clear))
.action(
ListItem::new("close", Label::new("Close")),
Box::new(CloseActiveItem { save_intent: None }),
)
}));
dbg!(&position);
// todo!()