Skip to content
Snippets Groups Projects

Feat update ui

Merged Bo-Chun Chen requested to merge louistw/account-app:feat-update-ui into react-frontend
1 file
+ 4
2
Compare changes
  • Side-by-side
  • Inline
@@ -13,6 +13,8 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
const DEBUG = true;
// use REMOTE_USER for production
const username = 'louistw';
const params = new URLSearchParams(window.location.search);
const redir_url = params.get('redir') || '/pun/sys/dashboard';
function Main(props) {
// Setup states
@@ -78,8 +80,8 @@ function Main(props) {
clearTimeout(myTimer);
})()
setTimeout(() => {
if (DEBUG) console.log('Redirecting to /test')
window.location = '/test';
if (DEBUG) console.log('Redirecting to ' + redir_url)
window.location = redir_url;
}, sec * 1000);
});
Loading