mirror of
https://github.com/usatiuk/writer.git
synced 2025-10-29 00:17:48 +01:00
move AppToaster out of App.tsx
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
7
frontend/src/AppToaster.tsx
Normal file
7
frontend/src/AppToaster.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
import { Position, Toaster } from "@blueprintjs/core";
|
||||
|
||||
export const AppToaster = Toaster.create({
|
||||
className: "recipe-toaster",
|
||||
position: Position.TOP,
|
||||
});
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user