Re-implement actions as derive macros instead of blanket impls

This commit is contained in:
Mikayla
2023-11-16 17:32:02 -08:00
parent a0e976599c
commit 4de2c0f7ef
22 changed files with 360 additions and 288 deletions
@@ -130,14 +130,12 @@ impl Render for CollabTitlebarItem {
.color(Some(TextColor::Muted)),
)
.tooltip(move |_, cx| {
// todo!() Replace with real action.
#[gpui::action]
struct NoAction {}
cx.build_view(|_| {
Tooltip::new("Recent Branches")
.key_binding(KeyBinding::new(gpui::KeyBinding::new(
"cmd-b",
NoAction {},
// todo!() Replace with real action.
gpui::NoAction,
None,
)))
.meta("Only local branches shown")