commit a485b87f7c4c27d780a0c798e702401d7bbd1d63
parent 9c5ee1fec4528a187d0b1f58113bba7091342d0c
Author: kernelkind <kernelkind@gmail.com>
Date: Thu, 11 Dec 2025 13:49:00 -0600
refactor(ContactsListView): generify action naming
Signed-off-by: kernelkind <kernelkind@gmail.com>
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/crates/notedeck_columns/src/nav.rs b/crates/notedeck_columns/src/nav.rs
@@ -1010,7 +1010,7 @@ fn render_nav_body(
)
.ui(ui)
.map_output(|action| match action {
- ContactsListAction::OpenProfile(pk) => {
+ ContactsListAction::Select(pk) => {
RenderNavAction::NoteAction(NoteAction::Profile(pk))
}
})
diff --git a/crates/notedeck_ui/src/contacts_list.rs b/crates/notedeck_ui/src/contacts_list.rs
@@ -18,7 +18,7 @@ pub struct ContactsListView<'a, 'txn> {
#[derive(Clone)]
pub enum ContactsListAction {
- OpenProfile(Pubkey),
+ Select(Pubkey),
}
pub enum ContactsCollection<'a> {
@@ -117,7 +117,7 @@ impl<'a, 'txn> ContactsListView<'a, 'txn> {
});
if resp.clicked() {
- action = Some(ContactsListAction::OpenProfile(*contact_pubkey));
+ action = Some(ContactsListAction::Select(*contact_pubkey));
}
}
});