+
+
+
Trading License Department
+ Here businesses can apply for trading licenses, in order to create or see your applications you must Login!
+
+
+
+
+
+ );
+}
+
+export default Home;
diff --git a/src/components/login.js b/src/components/login.js
index b6ad002..074158c 100644
--- a/src/components/login.js
+++ b/src/components/login.js
@@ -61,7 +61,7 @@ class LoginForm extends React.Component {
this.context.login(user);
alert('Hello ' + username + '!')
if (user.role === "admin"){
- this.setState({redirect:'/'});
+ this.setState({redirect:'/adminSpace'});
}
else{
this.setState({redirect:`/myapplication/${this.context.user.id}`});
diff --git a/src/components/nav.js b/src/components/nav.js
index a25992a..0f22a64 100644
--- a/src/components/nav.js
+++ b/src/components/nav.js
@@ -11,24 +11,22 @@ class Nav extends React.Component {
static contextType = UserContext;
- //Change the new application section for admins only!!
+ //Change the Admin space section for admins only!!
render() {
- const { id_user } = require('./applicationsForUsers.js')
- console.log(this.context.user.id)
- const applicationID = this.props.ID;
- console.log(applicationID)
+ console.log(this.context.user.role)
return (
<>