X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=cmd%2Fweb%2Fjs%2Fmain.jsx;h=c95c74888b978f60eea72c99dafbbea87c08b79a;hb=ee902062a71c1ef31176cf5061555618b288b1d4;hp=827b83da680486ef531dde9a90713f2057042055;hpb=989fb5c7dbba174f54f3ae69df788d6685fff46b;p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FCryptoportfolio%2FFront.git
diff --git a/cmd/web/js/main.jsx b/cmd/web/js/main.jsx
index 827b83d..c95c748 100644
--- a/cmd/web/js/main.jsx
+++ b/cmd/web/js/main.jsx
@@ -7,13 +7,32 @@ import Api from './api.js';
import cookies from './cookies.js';
import React from 'react';
+class Header extends React.Component {
+ render = () => {
+ if (this.props.displayLogout === true) {
+ return
;
+ }
+ return ;
+
+ }
+}
+
class Logo extends React.Component {
render() {
- return ;
+ return ;
}
}
@@ -24,7 +43,7 @@ App.page('/signup', false, function(context) {
}
App.mount(
-
+
);
});
@@ -36,7 +55,7 @@ App.page('/signin', false, function(context) {
}
App.mount(
-
+
);
});
@@ -49,11 +68,23 @@ App.page('/signout', true, function(context) {
App.page('/me', true, function(context) {
App.mount();
});
+App.page('/not_confirmed', true, function(context) {
+ App.mount(
+
+
+
+
Please be patient, you account is being confirmed...
+
Refresh
+
+
+ );
+});
+
App.page('/otp/setup', true, function(context) {
Api.Call('OTP_ENROLL', {}, function(err, status, data) {
if (err) {
@@ -62,7 +93,7 @@ App.page('/otp/setup', true, function(context) {
}
App.mount(
-
+
);
@@ -71,7 +102,7 @@ App.page('/otp/setup', true, function(context) {
App.page('/otp/validate', true, function(context) {
App.mount(
-
+
);
});