🔥 ⚡ Major Update
* Adds Actions, Redicers and Middlewares * Adds Http Service * Adds Cancel option for Http Service * Adds HOC's for API Loader, Sidebar and Headers * Adds Random key generator for Routes
This commit is contained in:
35
src/shared/footer.hoc.js
Normal file
35
src/shared/footer.hoc.js
Normal file
@@ -0,0 +1,35 @@
|
||||
import React, { Component } from "react";
|
||||
import { Link } from 'react-router-dom';
|
||||
import { connect } from "react-redux";
|
||||
import { compose } from "redux";
|
||||
import './footer.css';
|
||||
|
||||
const Footer = (HocComponent) => {
|
||||
return class FooterComponent extends Component {
|
||||
|
||||
render() {
|
||||
return (
|
||||
<React.Fragment>
|
||||
<HocComponent {...this.props} />
|
||||
<footer className="footer">
|
||||
<div className="container">Footer</div>
|
||||
</footer>
|
||||
|
||||
</React.Fragment>
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
const mapStateToProps = state => {
|
||||
return {
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
const WithFooter = compose(
|
||||
connect(mapStateToProps, null),
|
||||
Footer
|
||||
)
|
||||
export default WithFooter;
|
||||
Reference in New Issue
Block a user