From 39a8de0d21898d2dcb634ed1209898dc555ade09 Mon Sep 17 00:00:00 2001 From: Felix Hamme Date: Thu, 6 Jun 2019 18:31:00 +0200 Subject: [PATCH] Replace the profile page with a login mask if the user is not signed in --- pages/profile.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pages/profile.js b/pages/profile.js index 1c288f0..4b51c40 100644 --- a/pages/profile.js +++ b/pages/profile.js @@ -13,6 +13,7 @@ import '../static/css/profile.css'; import {connect} from 'react-redux'; import {changeMail} from '../js/api'; import {notify} from 'react-notify-toast'; +import RequireLogin from '../js/components/RequireLogin'; function ContentContainer(props) { return ( @@ -24,7 +25,7 @@ function ContentContainer(props) { export default class ProfilePage extends React.Component { render() { - return (
+ return ( Profil: turnie.re @@ -34,7 +35,7 @@ export default class ProfilePage extends React.Component {