File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+
12import { Suspense , lazy } from 'react' ;
23import { BrowserRouter as Router , Routes , Route } from 'react-router-dom' ;
34import { AuthProvider } from '@/contexts/AuthContext' ;
@@ -9,12 +10,11 @@ import { ErrorBoundary } from '@/components/ErrorBoundary';
910import '@/i18n' ;
1011import PrivacyPage from '@/pages/PrivacyPage' ;
1112import LegalPage from '@/pages/LegalPage' ;
13+ import { Dashboard } from '@/components/Dashboard' ;
1214
1315const Index = lazy ( ( ) => import ( '@/pages/Index' ) ) ;
14- const Dashboard = lazy ( ( ) => import ( '@/components/Dashboard' ) ) ;
1516const AdvancedStatsPage = lazy ( ( ) => import ( '@/pages/AdvancedStatsPage' ) ) ;
1617const AffiliatePage = lazy ( ( ) => import ( '@/pages/AffiliatePage' ) ) ;
17- const ShortLinkTrackingPage = lazy ( ( ) => import ( '@/pages/ShortLinkTrackingPage' ) ) ;
1818
1919const queryClient = new QueryClient ( {
2020 defaultOptions : {
@@ -46,7 +46,6 @@ function App() {
4646 < Route path = "/dashboard" element = { < Dashboard /> } />
4747 < Route path = "/campaign/:campaignId" element = { < AdvancedStatsPage /> } />
4848 < Route path = "/affiliate/:affiliateId" element = { < AffiliatePage /> } />
49- < Route path = "/s/:shortCode" element = { < ShortLinkTrackingPage /> } />
5049 < Route path = "/privacy" element = { < PrivacyPage /> } />
5150 < Route path = "/legal" element = { < LegalPage /> } />
5251 </ Routes >
You can’t perform that action at this time.
0 commit comments