Skip to content

Commit

Permalink
format: fix leptos format
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioRibera committed Jun 30, 2024
1 parent dd818bd commit d08419f
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions examples/simple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ This is a **markdown** file with some *content*, but also custom Leptos componen
"#;

let res = render_to_string(|| {
view! {
<MyMdx source={source.into()} />
}
view! { <MyMdx source=source.into()/> }
});

println!("{}", res);
Expand Down Expand Up @@ -54,23 +52,15 @@ fn MyMdx(source: String) -> impl IntoView {

// profit!

view! {
<Mdx source={source} components={components} />
}
view! { <Mdx source=source components=components/> }
}

#[component]
fn CustomTitle() -> impl IntoView {
view! {
<h1>Some custom title!</h1>
}
view! { <h1>Some custom title!</h1> }
}

#[component]
fn Layout(children: Children) -> impl IntoView {
view! {
<div class="layout">
{children()}
</div>
}
view! { <div class="layout">{children()}</div> }
}

0 comments on commit d08419f

Please sign in to comment.