Files
bigcapital/client/src/containers/Homepage/Homepage.js
Ahmed Bouhuolia 71cc561bb2 WIP Version 0.0.1
2020-05-08 04:36:04 +02:00

20 lines
511 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import React, { useEffect } from 'react';
import { connect } from 'react-redux';
import t from 'store/types';
const DashboardHomepage = ({ changePageTitle }) => {
useEffect(() => {
changePageTitle('Craigs Design and Landscaping Services')
});
return (
<div>asdasd</div>
);
}
const mapActionsToProps = (dispatch) => ({
changePageTitle: pageTitle => dispatch({
type: t.CHANGE_DASHBOARD_PAGE_TITLE, pageTitle
}),
});
export default connect(null, mapActionsToProps)(DashboardHomepage);