mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
Fix tests: add properties to component creation
This commit is contained in:
parent
f2029fa92d
commit
5f056c5c68
@ -13,7 +13,7 @@ impl Component<Ctx> for Comp {
|
||||
type Msg = ();
|
||||
type Properties = ();
|
||||
|
||||
fn create(_: &mut Env<Ctx, Self>) -> Self {
|
||||
fn create(_: Self::Properties, _: &mut Env<Ctx, Self>) -> Self {
|
||||
Comp
|
||||
}
|
||||
|
||||
|
||||
@ -12,7 +12,7 @@ impl Component<Ctx> for Comp {
|
||||
type Msg = ();
|
||||
type Properties = ();
|
||||
|
||||
fn create(_: &mut Env<Ctx, Self>) -> Self {
|
||||
fn create(_: Self::Properties, _: &mut Env<Ctx, Self>) -> Self {
|
||||
Comp
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user