Fix stories
co-authored-by: Piotrek <piotr@zed.dev>
This commit is contained in:
parent
8049ec674e
commit
a844bf7d41
14 changed files with 22 additions and 62 deletions
|
@ -251,7 +251,7 @@ mod stories {
|
|||
let states = InteractionState::iter();
|
||||
|
||||
Story::container(cx)
|
||||
.child(Story::title_for::<_, Button>(cx))
|
||||
.child(Story::title_for::<Button>(cx))
|
||||
.child(
|
||||
div()
|
||||
.flex()
|
||||
|
@ -394,7 +394,7 @@ mod stories {
|
|||
.child(
|
||||
Button::new("Label")
|
||||
.variant(ButtonVariant::Ghost)
|
||||
.on_click(cx.callback(|_view, _, cx| println!("Button clicked."))),
|
||||
.on_click(|_, cx| println!("Button clicked.")),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue