Making Share Target functional
This commit is contained in:
@ -1,5 +1,4 @@
|
||||
import { h, Component } from "preact";
|
||||
import Notes from "../notes";
|
||||
|
||||
import "./notifications.scss"
|
||||
import Notifications, { MessageType } from "../notifications";
|
||||
@ -37,11 +36,11 @@ export default class NotificationsComponent extends Component<{}, {
|
||||
this.setState({ notifications: n });
|
||||
setTimeout(() => {
|
||||
this.removeNot(not);
|
||||
}, 3000);
|
||||
}, 20000);
|
||||
}
|
||||
|
||||
removeNot(not: { message: string }) {
|
||||
let n = this.state.notifications.slice(0).filter(e => e !== not);
|
||||
let n = this.state.notifications.filter(e => e !== not);
|
||||
this.setState({ notifications: n });
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user