WIP
This commit is contained in:
parent
adc355a1e6
commit
0673606de8
11 changed files with 39 additions and 35 deletions
|
@ -13,7 +13,7 @@ pub enum NotificationEvent {
|
|||
Dismiss,
|
||||
}
|
||||
|
||||
pub trait Notification: EventEmitter<NotificationEvent> + Render {}
|
||||
pub trait Notification: EventEmitter<NotificationEvent> + Render<Self> {}
|
||||
|
||||
pub trait NotificationHandle: Send {
|
||||
fn id(&self) -> EntityId;
|
||||
|
@ -251,7 +251,7 @@ pub mod simple_message_notification {
|
|||
// }
|
||||
}
|
||||
|
||||
impl Render for MessageNotification {
|
||||
impl Render<Self> for MessageNotification {
|
||||
type Element = Div<Self>;
|
||||
|
||||
fn render(&mut self, cx: &mut ViewContext<Self>) -> Self::Element {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue