Fix duplicate element_state error in tests
This commit is contained in:
parent
bee7055634
commit
77afc33d9d
1 changed files with 15 additions and 11 deletions
|
@ -325,7 +325,10 @@ impl ChatPanel {
|
||||||
enum SignInPromptLabel {}
|
enum SignInPromptLabel {}
|
||||||
|
|
||||||
Align::new(
|
Align::new(
|
||||||
MouseEventHandler::new::<SignInPromptLabel, _, _, _>(0, cx, |mouse_state, _| {
|
MouseEventHandler::new::<SignInPromptLabel, _, _, _>(
|
||||||
|
cx.view_id(),
|
||||||
|
cx,
|
||||||
|
|mouse_state, _| {
|
||||||
Label::new(
|
Label::new(
|
||||||
"Sign in to use chat".to_string(),
|
"Sign in to use chat".to_string(),
|
||||||
if mouse_state.hovered {
|
if mouse_state.hovered {
|
||||||
|
@ -335,7 +338,8 @@ impl ChatPanel {
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
.boxed()
|
.boxed()
|
||||||
})
|
},
|
||||||
|
)
|
||||||
.with_cursor_style(CursorStyle::PointingHand)
|
.with_cursor_style(CursorStyle::PointingHand)
|
||||||
.on_click(move |cx| {
|
.on_click(move |cx| {
|
||||||
let rpc = rpc.clone();
|
let rpc = rpc.clone();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue