mirror of
				https://github.com/elyby/accounts-frontend.git
				synced 2025-05-31 14:11:58 +05:30 
			
		
		
		
	react-intl 2-rc1
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user