Skip to content

Commit dcf712e

Browse files
Fix: Restore landing page and related components
The landing page and other created components were missing. This commit restores them.
1 parent 1c5479d commit dcf712e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/App.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { ErrorBoundary } from '@/components/ErrorBoundary';
1010
import '@/i18n';
1111
import PrivacyPage from '@/pages/PrivacyPage';
1212
import LegalPage from '@/pages/LegalPage';
13+
import LandingPage from '@/pages/LandingPage';
1314
import { Dashboard } from '@/components/Dashboard';
1415

1516
const Index = lazy(() => import('@/pages/Index'));
@@ -42,7 +43,8 @@ function App() {
4243
<div className="animate-spin rounded-full h-8 w-8 border-2 border-blue-600 border-t-transparent"></div>
4344
</div>}>
4445
<Routes>
45-
<Route path="/" element={<Index />} />
46+
<Route path="/" element={<LandingPage />} />
47+
<Route path="/app" element={<Index />} />
4648
<Route path="/dashboard" element={<Dashboard />} />
4749
<Route path="/campaign/:campaignId" element={<AdvancedStatsPage />} />
4850
<Route path="/affiliate/:affiliateId" element={<AffiliatePage />} />

src/pages/LandingPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const LandingPage = () => {
1414
}, []);
1515

1616
const redirectToDashboard = () => {
17-
window.location.href = 'https://dashboard.refspring.com';
17+
window.location.href = '/app';
1818
};
1919

2020
const structuredData = {

0 commit comments

Comments
 (0)