Skip to content

Commit a07bd13

Browse files
Fix build errors in App.tsx
Fixes build errors related to module import and type mismatches in App.tsx.
1 parent 2090987 commit a07bd13

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/App.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
import { Suspense, lazy } from 'react';
23
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
34
import { AuthProvider } from '@/contexts/AuthContext';
@@ -9,12 +10,11 @@ import { ErrorBoundary } from '@/components/ErrorBoundary';
910
import '@/i18n';
1011
import PrivacyPage from '@/pages/PrivacyPage';
1112
import LegalPage from '@/pages/LegalPage';
13+
import { Dashboard } from '@/components/Dashboard';
1214

1315
const Index = lazy(() => import('@/pages/Index'));
14-
const Dashboard = lazy(() => import('@/components/Dashboard'));
1516
const AdvancedStatsPage = lazy(() => import('@/pages/AdvancedStatsPage'));
1617
const AffiliatePage = lazy(() => import('@/pages/AffiliatePage'));
17-
const ShortLinkTrackingPage = lazy(() => import('@/pages/ShortLinkTrackingPage'));
1818

1919
const 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>

0 commit comments

Comments
 (0)