import * as React from "react"; import { Button, Segment } from "semantic-ui-react"; import { AppState, injectState } from "@client/state"; import { getRandomId } from "@common/utils"; class MessageTest extends React.Component<{ appState: AppState }> { render() { return (

Message Test

); } private test1 = () => { this.props.appState.uiStore.addMessage({ info: true, content: "Test Message! " + getRandomId(), header: "Header to test message" }); }; private test2 = () => { this.props.appState.uiStore.addMessage({ warning: true, content: "Im gonna dissapear in 5 seconds " + getRandomId(), header: "Header to test message", timeout: 5000 }); }; private test3 = () => { this.props.appState.uiStore.addMessage({ color: "brown", content:
I Have crazy content!
, header: "Header to test message", timeout: 5000 }); }; } export default injectState(MessageTest);