move AppToaster out of App.tsx

This commit is contained in:
2019-02-11 13:22:38 +03:00
parent 36aed914b0
commit 9d716eba0c
3 changed files with 8 additions and 7 deletions

View File

@@ -1,4 +1,3 @@
import { Position, Toaster } from "@blueprintjs/core";
import * as React from "react";
import { connect } from "react-redux";
import { Route, RouteComponentProps, Switch, withRouter } from "react-router";
@@ -7,11 +6,6 @@ import { Home } from "~Home/Home";
import { Landing } from "~Landing/Landing";
import { IAppState } from "~redux/reducers";
export const AppToaster = Toaster.create({
className: "recipe-toaster",
position: Position.TOP,
});
interface IAppComponentProps extends RouteComponentProps {
loggedIn: boolean;
}

View File

@@ -0,0 +1,7 @@
import { Position, Toaster } from "@blueprintjs/core";
export const AppToaster = Toaster.create({
className: "recipe-toaster",
position: Position.TOP,
});

View File

@@ -6,7 +6,7 @@ import { connect } from "react-redux";
import { RouteComponentProps, withRouter } from "react-router";
import { Dispatch } from "redux";
import { IDocumentJSON } from "~../../src/entity/Document";
import { AppToaster } from "~App";
import { AppToaster } from "~AppToaster";
import { LoadingStub } from "~LoadingStub";
import {
deleteDocCancel,