Update Landing.js
This commit is contained in:
@@ -5,7 +5,6 @@ import PropTypes from 'prop-types';
|
|||||||
|
|
||||||
const Landing = ({ isAuthenticated }) => {
|
const Landing = ({ isAuthenticated }) => {
|
||||||
if (isAuthenticated) {
|
if (isAuthenticated) {
|
||||||
<<<<<<< HEAD
|
|
||||||
return <Navigate to="/dashboard" />;
|
return <Navigate to="/dashboard" />;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -23,25 +22,6 @@ const Landing = ({ isAuthenticated }) => {
|
|||||||
Sign Up
|
Sign Up
|
||||||
</Link>
|
</Link>
|
||||||
<Link to="/login" className="btn btn-light">
|
<Link to="/login" className="btn btn-light">
|
||||||
=======
|
|
||||||
return <Navigate to='/dashboard' />;
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
|
||||||
<section className='landing'>
|
|
||||||
<div className='dark-overlay'>
|
|
||||||
<div className='landing-inner'>
|
|
||||||
<h1 className='x-large'>Developer Connector</h1>
|
|
||||||
<p className='lead'>
|
|
||||||
Create a developer profile/portfolio, share posts and get help from
|
|
||||||
other developers
|
|
||||||
</p>
|
|
||||||
<div className='buttons'>
|
|
||||||
<Link to='/register' className='btn btn-primary'>
|
|
||||||
Sign Up
|
|
||||||
</Link>
|
|
||||||
<Link to='/login' className='btn btn-light'>
|
|
||||||
>>>>>>> cc38df43629d64ca77f694c971a13a026b3afcfb
|
|
||||||
Login
|
Login
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
@@ -55,16 +35,9 @@ Landing.propTypes = {
|
|||||||
isAuthenticated: PropTypes.bool
|
isAuthenticated: PropTypes.bool
|
||||||
};
|
};
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
const mapStateToProps = (state) => ({
|
const mapStateToProps = (state) => ({
|
||||||
isAuthenticated: state.auth.isAuthenticated
|
isAuthenticated: state.auth.isAuthenticated
|
||||||
});
|
});
|
||||||
|
|
||||||
export default connect(mapStateToProps)(Landing);
|
export default connect(mapStateToProps)(Landing);
|
||||||
=======
|
|
||||||
const mapStateToProps = state => ({
|
|
||||||
isAuthenticated: state.auth.isAuthenticated
|
|
||||||
});
|
|
||||||
|
|
||||||
export default connect(mapStateToProps)(Landing);
|
|
||||||
>>>>>>> cc38df43629d64ca77f694c971a13a026b3afcfb
|
|
||||||
|
|||||||
Reference in New Issue
Block a user