Skip to content

Commit

Permalink
refactor: simpler event signature
Browse files Browse the repository at this point in the history
  • Loading branch information
ctron committed Nov 8, 2023
1 parent 5910c86 commit 734b5be
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ features = [

[patch.crates-io]
#patternfly-yew = { path = "../patternfly-yew" }
patternfly-yew = { git = "https://github.com/ctron/patternfly-yew", rev = "5b4ba18d9611677f5ae07df3adbf36997cf5e336" } # FIXME: awaiting release
patternfly-yew = { git = "https://github.com/ctron/patternfly-yew", rev = "4b5025843efe1c9fce5c85168f5f5971005a0886" } # FIXME: awaiting release
#yew-nested-router = { path = "../yew-nested-router" }
#yew-more-hooks = { git = "https://github.com/ctron/yew-more-hooks", rev = "f535bb2e7b227aac7010035215c11d4aeae6cb62" } # FIXME: awaiting release
#yew-more-hooks = { path = "../yew-more-hooks" }
Expand Down
2 changes: 1 addition & 1 deletion src/components/form/checkbox/checkbox.1.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
fn example() -> Html {

let state = use_state_eq(|| true);
let onchange = use_callback(state.clone(), |(_, value): (_, CheckboxState), state| {
let onchange = use_callback(state.clone(), |value: CheckboxState, state| {
state.set(value.into());
});

Expand Down
2 changes: 1 addition & 1 deletion src/components/form/checkbox/checkbox.2.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
fn example() -> Html {

let state = use_state_eq(|| CheckboxState::Indeterminate);
let onchange = use_callback(state.clone(), |(_, value): (_, CheckboxState), state| {
let onchange = use_callback(state.clone(), |value: CheckboxState, state| {
state.set(value);
});

Expand Down

0 comments on commit 734b5be

Please sign in to comment.