@@ -66,5 +73,6 @@ class HomeGrid extends React.Component {
);
}
}
+}
export default withRouter(HomeGrid);
diff --git a/src/components/login.js b/src/components/login.js
index 074158c..12c5d97 100644
--- a/src/components/login.js
+++ b/src/components/login.js
@@ -80,6 +80,7 @@ class LoginForm extends React.Component {
}
return (
diff --git a/src/components/nav.js b/src/components/nav.js
index 0f22a64..1098a81 100644
--- a/src/components/nav.js
+++ b/src/components/nav.js
@@ -11,9 +11,7 @@ class Nav extends React.Component {
static contextType = UserContext;
- //Change the Admin space section for admins only!!
render() {
- console.log(this.context.user.role)
return (
<>
diff --git a/src/components/newApplication.js b/src/components/newApplication.js
index 68e9bf6..0fc4856 100644
--- a/src/components/newApplication.js
+++ b/src/components/newApplication.js
@@ -5,21 +5,19 @@ import UserContext from '../contexts/user';
const { Title } = Typography;
-const usernameRules= [
- {required: true, message: "The username field is empty", whitespace:true}
-]
+const { TextArea } = Input
const nameRule=[
{required:true,message:'Please type the name of the compnay.',whitespace:false, min:5,max:150}
]
const crnRule=[
- {required:true,message:'Please type the company reference number.',whitespace:false, min:8,max:8}
+ {required:true, type:'number', message:'Please a valid company reference number.',whitespace:false, min:8,max:8}
]
const addressRule=[
{required:true,message:'Please enter the address where the company is located.',whitespace:false, min:5,max:32}
]
const emailRule=[
- {required:true,message:'Please enter the company email.',whitespace:false, min:5,max:32}
+ {required:true, type:'email', message:'Please enter a valid company email.',whitespace:false, min:5,max:32}
]
const dateFoundedRule=[
{required:true,message:'Please enter the foundation date of the company.'}
@@ -76,30 +74,37 @@ class NewApplication extends React.Component {
return (