mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 01:51:40 -05:00
fix withMessages
This commit is contained in:
parent
5816b175f0
commit
d31ce63a17
3 changed files with 5 additions and 7 deletions
|
@ -3,7 +3,6 @@ import { withMessages } from 'meteor/nova:core';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
const FlashMessages = ({messages, clear, markAsSeen}) => {
|
const FlashMessages = ({messages, clear, markAsSeen}) => {
|
||||||
return <p>repair me!</p>
|
|
||||||
return (
|
return (
|
||||||
<div className="flash-messages">
|
<div className="flash-messages">
|
||||||
{messages
|
{messages
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import Telescope, { Components, Actions } from 'meteor/nova:lib';
|
import { Components, Actions } from 'meteor/nova:lib';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { ReactRouterSSR } from 'meteor/reactrouter:react-router-ssr';
|
import { ReactRouterSSR } from 'meteor/reactrouter:react-router-ssr';
|
||||||
import Helmet from 'react-helmet';
|
import Helmet from 'react-helmet';
|
||||||
|
@ -89,4 +89,4 @@ Meteor.startup(function initNovaRoutesAndApollo() {
|
||||||
};
|
};
|
||||||
|
|
||||||
ReactRouterSSR.Run(AppRoutes, clientOptions, serverOptions);
|
ReactRouterSSR.Run(AppRoutes, clientOptions, serverOptions);
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,12 +1,11 @@
|
||||||
import { createStore, combineReducers, applyMiddleware, compose } from 'redux';
|
import { createStore, combineReducers, applyMiddleware, compose } from 'redux';
|
||||||
// import { routerMiddleware } from 'react-router-redux'
|
// import { routerMiddleware } from 'react-router-redux'
|
||||||
|
|
||||||
import Telescope from 'meteor/nova:lib';
|
import { Reducers }from 'meteor/nova:lib';
|
||||||
// import { client } from 'meteor/nova:apollo';
|
|
||||||
|
|
||||||
const configureStore = (client, initialState = {}, history) => createStore(
|
const configureStore = (client, initialState = {}, history) => createStore(
|
||||||
// reducers
|
// reducers
|
||||||
combineReducers({...Telescope.reducers, apollo: client.reducer()}),
|
combineReducers({...Reducers, apollo: client.reducer()}),
|
||||||
//initial state
|
//initial state
|
||||||
initialState,
|
initialState,
|
||||||
// middlewares
|
// middlewares
|
||||||
|
@ -16,4 +15,4 @@ const configureStore = (client, initialState = {}, history) => createStore(
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
export { configureStore };
|
export { configureStore };
|
||||||
|
|
Loading…
Add table
Reference in a new issue