Replace the profile page with a login mask if the user is not signed in
This commit is contained in:
parent
4854847454
commit
39a8de0d21
|
|
@ -13,6 +13,7 @@ import '../static/css/profile.css';
|
||||||
import {connect} from 'react-redux';
|
import {connect} from 'react-redux';
|
||||||
import {changeMail} from '../js/api';
|
import {changeMail} from '../js/api';
|
||||||
import {notify} from 'react-notify-toast';
|
import {notify} from 'react-notify-toast';
|
||||||
|
import RequireLogin from '../js/components/RequireLogin';
|
||||||
|
|
||||||
function ContentContainer(props) {
|
function ContentContainer(props) {
|
||||||
return (<Container className="pb-5">
|
return (<Container className="pb-5">
|
||||||
|
|
@ -24,7 +25,7 @@ function ContentContainer(props) {
|
||||||
|
|
||||||
export default class ProfilePage extends React.Component {
|
export default class ProfilePage extends React.Component {
|
||||||
render() {
|
render() {
|
||||||
return (<div>
|
return (<RequireLogin loginMessage='Sie müssen angemeldet sein, um Ihr Profil einzusehen.'>
|
||||||
<Head>
|
<Head>
|
||||||
<title>Profil: turnie.re</title>
|
<title>Profil: turnie.re</title>
|
||||||
</Head>
|
</Head>
|
||||||
|
|
@ -34,7 +35,7 @@ export default class ProfilePage extends React.Component {
|
||||||
<Content/>
|
<Content/>
|
||||||
</div>
|
</div>
|
||||||
<Footer/>
|
<Footer/>
|
||||||
</div>);
|
</RequireLogin>);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue