From d2c2cc62a4c2e1ac10f8434bea7bb834da820869 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sat, 16 Jan 2021 11:40:36 +0100 Subject: semi working next project --- src/components/toast.tsx | 78 ------------------------------------------------ 1 file changed, 78 deletions(-) delete mode 100644 src/components/toast.tsx (limited to 'src/components/toast.tsx') diff --git a/src/components/toast.tsx b/src/components/toast.tsx deleted file mode 100644 index 1d467bd..0000000 --- a/src/components/toast.tsx +++ /dev/null @@ -1,78 +0,0 @@ -import { CSSProperties, ReactNode, Component } from "react"; - -import CloseIcon from '@material-ui/icons/Close'; - -export function ToastArea(props: { - style?: CSSProperties - children?: ReactNode -}) { - return
{props.children}
-} - -export class Toast extends Component<{ - text?: string - icon?: ReactNode - children?: ReactNode - type?: "normal"|"confirmation"|"error" - style?: CSSProperties -}> { - state = { render: true } - - close = () => this.setState({ render: false }) - - render () { - if (!this.state.render) return null; - return
- { - this.props.children ? - this.props.children : -
-
{this.props.icon}
-

{this.props.text}

-
- -
-
- } -
- } -} - -- cgit v1.2.3