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
|
@ -291,7 +291,7 @@ pub use stories::*;
|
|||
mod stories {
|
||||
use super::*;
|
||||
use crate::{h_stack, Story};
|
||||
use gpui::{Div, Render};
|
||||
use gpui::{Div, Render, ViewContext};
|
||||
|
||||
pub struct CheckboxStory;
|
||||
|
||||
|
@ -300,7 +300,7 @@ mod stories {
|
|||
|
||||
fn render(&mut self, cx: &mut ViewContext<Self>) -> Self::Element {
|
||||
Story::container(cx)
|
||||
.child(Story::title_for::<_, Checkbox<Self>>(cx))
|
||||
.child(Story::title_for::<Checkbox>(cx))
|
||||
.child(Story::label(cx, "Default"))
|
||||
.child(
|
||||
h_stack()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue