Pass IDs to IconButton
s instead of generating them
This commit is contained in:
parent
7719ed0d6c
commit
47f979d457
11 changed files with 40 additions and 39 deletions
|
@ -45,7 +45,7 @@ impl<S: 'static + Send + Sync> AssistantPanel<S> {
|
|||
.child(
|
||||
div()
|
||||
.flex()
|
||||
.child(IconButton::new(Icon::Menu))
|
||||
.child(IconButton::new(Icon::Menu, "menu"))
|
||||
.child(Label::new("New Conversation")),
|
||||
)
|
||||
.child(
|
||||
|
@ -53,11 +53,11 @@ impl<S: 'static + Send + Sync> AssistantPanel<S> {
|
|||
.flex()
|
||||
.items_center()
|
||||
.gap_px()
|
||||
.child(IconButton::new(Icon::SplitMessage))
|
||||
.child(IconButton::new(Icon::Quote))
|
||||
.child(IconButton::new(Icon::MagicWand))
|
||||
.child(IconButton::new(Icon::Plus))
|
||||
.child(IconButton::new(Icon::Maximize)),
|
||||
.child(IconButton::new(Icon::SplitMessage, "split_message"))
|
||||
.child(IconButton::new(Icon::Quote, "quote"))
|
||||
.child(IconButton::new(Icon::MagicWand, "magic_wand"))
|
||||
.child(IconButton::new(Icon::Plus, "plus"))
|
||||
.child(IconButton::new(Icon::Maximize, "maximize")),
|
||||
),
|
||||
)
|
||||
// Chat Body
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue