Created
December 27, 2018 08:41
-
-
Save adnanhz/04f72f38abec59f0e931137e76b423de to your computer and use it in GitHub Desktop.
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
import PropTypes from 'prop-types' | |
import React, { Component } from 'react' | |
import Flexbox from 'flexbox-react'; | |
import { connect } from 'react-redux'; | |
import { push, goBack } from 'react-router-redux'; | |
import './GetStarted.css'; | |
import Header from "../../../components/Header/Header"; | |
import ActionBar from '../../../components/ActionBar/ActionBar'; | |
import { Container, Button, Icon } from 'semantic-ui-react'; | |
class GetStarted extends React.Component { | |
constructor(props){ | |
super(props); | |
} | |
render(){ | |
return( | |
<div className="container get-started-bg" style={{backgroundImage: "url('images/app/get-started-bg.jpg')"}}> | |
{ /* code omitted for clarity */ } | |
</div> | |
) | |
} | |
} | |
const mapStateToProps = state => { | |
return { | |
client: state.client.client, | |
error: state.center.error, | |
token: state.authentication.token, | |
user: state.authentication.user, | |
}; | |
}; | |
const mapDispatchToProps = dispatch => { | |
return { | |
push: (page) => dispatch(push(page)), | |
goBack: () => dispatch(goBack()) | |
}; | |
}; | |
export default connect( | |
mapStateToProps, | |
mapDispatchToProps | |
)(GetStarted); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment