gpui: Update Menu name to use SharedString type to support more types (#14791)

Release Notes:

- N/A
This commit is contained in:
Jason Lee 2024-07-19 20:51:31 +08:00 committed by GitHub
parent 836f623800
commit fb541accb2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 40 additions and 38 deletions

View file

@ -1,10 +1,10 @@
use gpui::{Menu, MenuItem};
pub fn app_menus() -> Vec<Menu<'static>> {
pub fn app_menus() -> Vec<Menu> {
use crate::actions::Quit;
vec![Menu {
name: "Storybook",
name: "Storybook".into(),
items: vec![MenuItem::action("Quit", Quit)],
}]
}