mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-11-30 10:42:34 +05:30
react-intl 2-rc1
This commit is contained in:
parent
e94b04551d
commit
c8b112b63f
@ -22,7 +22,7 @@
|
||||
"react-dom": "^0.14.3",
|
||||
"react-height": "^2.0.3",
|
||||
"react-helmet": "^2.3.1",
|
||||
"react-intl": "=2.0.0-beta-2",
|
||||
"react-intl": "=v2.0.0-rc-1",
|
||||
"react-motion": "^0.4.0",
|
||||
"react-redux": "^4.0.0",
|
||||
"react-router": "^2.0.0",
|
||||
|
13
src/index.js
13
src/index.js
@ -22,19 +22,6 @@ import routesFactory from 'routes';
|
||||
|
||||
import 'index.scss';
|
||||
|
||||
// TODO: временная мера против Intl, который беспощадно спамит консоль
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
const originalConsoleError = console.error;
|
||||
if (console.error === originalConsoleError) {
|
||||
console.error = (...args) => {
|
||||
if (args[0].indexOf('[React Intl] Missing message:') === 0) {
|
||||
return;
|
||||
}
|
||||
originalConsoleError.call(console, ...args);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
const reducer = combineReducers({
|
||||
...reducers,
|
||||
routing: routeReducer
|
||||
|
Loading…
Reference in New Issue
Block a user