-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c93b3c5
commit a8f6514
Showing
22 changed files
with
322 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const TEST_DASHBOARD_ACTION = 'TEST_DASHBOARD_ACTION'; | ||
export const TEST_LOGIN_ACTION = 'TEST_LOGIN_ACTION'; | ||
export const TEST_HOME_ACTION = 'TEST_HOME_ACTION'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { | ||
TEST_DASHBOARD_ACTION, | ||
} from './_constants'; | ||
|
||
|
||
export const testAction = payload => (dispatch) => { | ||
// remove later | ||
console.log('dashboard action fired!'); | ||
dispatch({ | ||
type: TEST_DASHBOARD_ACTION, | ||
payload, | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { | ||
TEST_LOGIN_ACTION, | ||
} from './_constants'; | ||
|
||
|
||
export const testAction = payload => (dispatch) => { | ||
// remove later | ||
console.log('login action fired!'); | ||
dispatch({ | ||
type: TEST_LOGIN_ACTION, | ||
payload, | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { | ||
TEST_MAIN_ACTION, | ||
} from './_constants'; | ||
|
||
|
||
export const testAction = payload => (dispatch) => { | ||
// remove later | ||
console.log('main action fired!'); | ||
dispatch({ | ||
type: TEST_MAIN_ACTION, | ||
payload, | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import { Provider } from 'react-redux'; | ||
|
||
import App from './components/App'; | ||
import './index.sass'; | ||
import App from './pages/app/App'; | ||
import store from './store'; | ||
import './styles/index.sass'; | ||
|
||
ReactDOM.render(<App />, document.getElementById('app')); | ||
ReactDOM.render(<Provider store={store}><App /></Provider>, document.getElementById('app')); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import React from 'react'; | ||
import { connect } from 'react-redux'; | ||
|
||
const styles = { | ||
}; | ||
|
||
class ContainersWrapper extends React.Component { | ||
constructor(props) { | ||
super(props); | ||
this.state = {}; | ||
} | ||
|
||
render() { | ||
return ( | ||
<div style={styles.container}> | ||
<h1>Hello!</h1> | ||
</div> | ||
); | ||
} | ||
} | ||
ContainersWrapper.propTypes = {}; | ||
|
||
const mapStateToProps = () => { return {}; }; | ||
|
||
const mapDispatchToProps = () => { return {}; }; | ||
|
||
const Containers = connect(mapStateToProps, mapDispatchToProps)(ContainersWrapper); | ||
|
||
|
||
export default Containers; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.