Previously, when an unauthenticated user clicked the "Console" navigation link, the application would first attempt to navigate to '/console'. This would then trigger a redirect to '/login', causing a brief flicker between the two pages. This commit modifies the `renderNavLinks` function in `HeaderBar.js` to proactively check the user's authentication status. If the user is not logged in and clicks the "Console" link, the navigation target is directly set to '/login', avoiding the intermediate redirect and eliminating the flickering effect.
React Template
Basic Usages
# Runs the app in the development mode
npm start
# Builds the app for production to the `build` folder
npm run build
If you want to change the default server, please set REACT_APP_SERVER environment variables before build,
for example: REACT_APP_SERVER=http://your.domain.com.
Before you start editing, make sure your Actions on Save options have Optimize imports & Run Prettier enabled.