Created
March 24, 2020 10:19
-
-
Save alieslamifard/22e8aff6a0ddcc09285271778b62cef2 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 React from 'react'; | |
import withPrivateRoute from '../components/withPrivateRoute'; | |
const Dashboard = () => { | |
return <div>This is a Dashboard page which is private.</div>; | |
}; | |
Dashboard.getInitialProps = async props => { | |
console.info('##### Congratulations! You are authorized! ######', props); | |
return {}; | |
}; | |
export default withPrivateRoute(Dashboard); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment