diff --git a/config.js b/config.js index 957b329f61..81090e8978 100644 --- a/config.js +++ b/config.js @@ -53,10 +53,8 @@ const config = { // ---------------------------------- compiler_devtool: (__DEV__ || __TEST__) && 'cheap-source-map', compiler_globals: { - process: { - env: { - NODE_ENV: JSON.stringify(env), - }, + 'process.env': { + NODE_ENV: JSON.stringify(env), }, __DEV__, __PATH_SEP__: JSON.stringify(path.sep), diff --git a/docs/app/Components/LayoutsLayout.js b/docs/app/Components/LayoutsLayout.js index 32a98cb17e..27eec3b8c1 100644 --- a/docs/app/Components/LayoutsLayout.js +++ b/docs/app/Components/LayoutsLayout.js @@ -1,5 +1,6 @@ import _ from 'lodash' -import React, { Component, PropTypes } from 'react' +import PropTypes from 'prop-types' +import React, { Component } from 'react' import { NavLink, Route } from 'react-router-dom' import { Button } from 'src' diff --git a/docs/app/Examples/modules/Popup/Types/PopupExampleTitled.js b/docs/app/Examples/modules/Popup/Types/PopupExampleTitled.js index ee3abbff99..f9677e37f8 100644 --- a/docs/app/Examples/modules/Popup/Types/PopupExampleTitled.js +++ b/docs/app/Examples/modules/Popup/Types/PopupExampleTitled.js @@ -18,13 +18,17 @@ const users = [ avatar: '/assets/images/avatar/small/matt.jpg', }, ] - +/* TODO: Remove
wrapper after all our components will be classes */ const PopupExampleTitled = () => (
{users.map(user => ( } + trigger={( +
+ +
+ )} header={user.name} content={user.bio} /> diff --git a/docs/app/index.ejs b/docs/app/index.ejs index 5a472dceac..2502a02b56 100644 --- a/docs/app/index.ejs +++ b/docs/app/index.ejs @@ -69,10 +69,10 @@ - - - - + + + +