Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/dashboard/Dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ const LazyAppSecurityReport = lazy(() => import('./AppSecurityReport/AppSecurity
const LazyDatabaseProfile = lazy(() => import('./DatabaseProfiler/DatabaseProfiler.react'));
const LazyEmailVerification = lazy(() => import('./Notification/EmailVerification.react'));
const LazyEmailPasswordReset = lazy(() => import('./Notification/EmailPasswordReset.react'));
const LazyPushAndroidSettings = lazy(() => import('./Push/PushAndroidSettings.react'));


async function fetchHubUser() {
Expand Down Expand Up @@ -162,6 +163,7 @@ const preloadMap = {
appPlan: () => import('./AppPlan/AppPlan.react'),
emailVerification: () => import('./Notification/EmailVerification.react'),
emailPasswordReset: () => import('./Notification/EmailPasswordReset.react'),
pushAndroidSettings: () => import('./Push/PushAndroidSettings.react'),
};

// Preload all routes with proper error handling and logging
Expand Down Expand Up @@ -504,6 +506,7 @@ class Dashboard extends React.Component {
<Route path="push/activity/:category" element={<PushIndex />} />
<Route path="push/audiences" element={<PushAudiencesIndex />} />
<Route path="push/new" element={<PushNew />} />
<Route path="push/android-settings" element={<LazyComponentWrapper><LazyPushAndroidSettings /></LazyComponentWrapper>} />
<Route path="push/:pushId" element={<PushDetails />} />

<Route path="connect" element={<B4aConnectPage />} />
Expand Down
1 change: 1 addition & 0 deletions src/dashboard/DashboardView.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ export default class DashboardView extends React.Component {
{ name: 'Send New Push', link: '/push/new' },
{ name: 'Past Pushes', link: '/push/activity' },
{ name: 'Audiences', link: '/push/audiences' },
{ name: 'Android', link: '/push/android-settings' },
],
},
];
Expand Down
Loading
Loading