Skip to content
This repository was archived by the owner on Feb 21, 2023. It is now read-only.

Commit

Permalink
docs(redux): reference redux components in /lib/ (#44)
Browse files Browse the repository at this point in the history
fixes #43
  • Loading branch information
TheSharpieOne authored Sep 30, 2019
1 parent 93daae6 commit 84153c0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/lib/Components/ReduxBlockUiPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function ReduxBlockUi() {
registered (see below).
</p>
<p>
Notice the import is coming from a separate file directly; <code>import ReduxBlockUi from 'react-block-ui/redux'</code>.
Notice the import is coming from a separate file directly; <code>import ReduxBlockUi from 'react-block-ui/lib/redux'</code>.
This is done to keep the standard library light for the developers who only want <code>BlockUi</code> and do
not use redux and/or do not want <code>ReduxBlockUi</code>.
</p>
Expand Down
2 changes: 1 addition & 1 deletion docs/lib/examples/ReduxBlockUi.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import PropTypes from 'prop-types';
import { Button } from 'reactstrap';
import { connect } from 'react-redux';
import ReduxBlockUi from 'react-block-ui/redux';
import ReduxBlockUi from 'react-block-ui/lib/redux';
import 'react-block-ui/style.css';

class Example extends React.Component {
Expand Down
2 changes: 1 addition & 1 deletion docs/lib/examples/ReduxStore.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { applyMiddleware, createStore, combineReducers } from 'redux';
import reduxMiddleware from 'react-block-ui/reduxMiddleware';
import reduxMiddleware from 'react-block-ui/lib/reduxMiddleware';
//import reducers from './reducers';
const reducers = {actions: (state = [], payload) => [payload, ...state]};

Expand Down
2 changes: 2 additions & 0 deletions webpack.dev.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ var config = [{
resolve: {
extensions: ['', '.js', '.jsx', '.json'],
alias: {
'react-block-ui/lib/redux': path.resolve('./src/redux'),
'react-block-ui/lib/reduxMiddleware': path.resolve('./src/reduxMiddleware'),
'react-block-ui': path.resolve('./src'),
},
},
Expand Down

0 comments on commit 84153c0

Please sign in to comment.