Skip to content

Commit

Permalink
fixed docs
Browse files Browse the repository at this point in the history
  • Loading branch information
maccesch committed May 11, 2023
1 parent d55256e commit 81c5058
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repository = "https://github.com/Synphonyte/leptos-struct-table"

[dependencies]
leptos = "0.2"
leptos-struct-table-macro = { version = "0.1" }
leptos-struct-table-macro = "0.1"
async-trait = "0.1"
paste = { version = "1.0", optional = true }
chrono = { version = "0.4", optional = true, features = ["serde"] }
Expand Down
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,9 @@ pub struct Book {
fn ImageTableCellRenderer(
cx: Scope,
#[prop(into)] class: MaybeSignal<String>,
#[prop(into)] value: MaybeSignal<T>,
) -> impl IntoView
where
T: IntoView + Clone + 'static,
{
#[prop(into)] value: MaybeSignal<String>,
index: usize,
) -> impl IntoView {
view! { cx,
<td class=class>
<img src=value alt="Book image" height="64"/>
Expand Down
8 changes: 3 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,9 @@ pub struct TemperatureMeasurement {
//! fn ImageTableCellRenderer(
//! cx: Scope,
//! #[prop(into)] class: MaybeSignal<String>,
//! #[prop(into)] value: MaybeSignal<T>,
//! ) -> impl IntoView
//! where
//! T: IntoView + Clone + 'static,
//! {
//! #[prop(into)] value: MaybeSignal<String>,
//! index: usize,
//! ) -> impl IntoView {
//! view! { cx,
//! <td class=class>
//! <img src=value alt="Book image" height="64"/>
Expand Down

0 comments on commit 81c5058

Please sign in to comment.