diff --git a/ipi-survey-platform/src/App.jsx b/ipi-survey-platform/src/App.jsx
index 4c77988..dba9215 100644
--- a/ipi-survey-platform/src/App.jsx
+++ b/ipi-survey-platform/src/App.jsx
@@ -16,175 +16,268 @@ import PublicContactForm from '@/pages/PublicContactForm';
import EditCompanyProfile from '@/pages/Admin/configuration/EditCompanyProfile';
const RequireRole = ({ allowedRoles = [], children }) => {
- let role
- let token
+ let role;
+ let token;
try {
- role = sessionStorage.getItem('user_role')
- token = sessionStorage.getItem('auth_token')
+ role = sessionStorage.getItem('user_role');
+ token = sessionStorage.getItem('auth_token');
} catch (error) {
- role = null
- token = null
+ role = null;
+ token = null;
}
- const normalizedRole = String(role || '').toLowerCase()
- const isAllowed = Boolean(token) && allowedRoles.some((allowed) => String(allowed || '').toLowerCase() === normalizedRole)
+ const normalizedRole = String(role || '').toLowerCase();
+ const isAllowed =
+ Boolean(token) &&
+ allowedRoles.some(
+ (allowed) => String(allowed || '').toLowerCase() === normalizedRole
+ );
if (isAllowed) {
- return children
+ return children;
}
- return
+ Your session will expire in {minutes}:{seconds.toString().padStart(2, '0')} due to inactivity. +
++ Would you like to stay signed in? +
+