Skip to content

Commit 990955c

Browse files
committed
rm careers
1 parent 194ef01 commit 990955c

5 files changed

Lines changed: 21 additions & 311 deletions

File tree

frontend/src/App.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ const ResetPassword = lazy(() => import("./pages/ResetPassword"));
1717
const UpdatePassword = lazy(() => import("./pages/UpdatePassword"));
1818
const About = lazy(() => import("./pages/About"));
1919
const Contact = lazy(() => import("./pages/Contact"));
20-
const Careers = lazy(() => import("./pages/Careers"));
2120
const Terms = lazy(() => import("./pages/Terms"));
2221
const Privacy = lazy(() => import("./pages/Privacy"));
2322
const SubscriptionSuccess = lazy(() => import("./pages/SubscriptionSuccess"));
@@ -73,7 +72,6 @@ export function App() {
7372
<Route path="/update-password" element={<UpdatePassword />} />
7473
<Route path="/about" element={<About />} />
7574
<Route path="/contact" element={<Contact />} />
76-
<Route path="/careers" element={<Careers />} />
7775
<Route path="/terms" element={<Terms />} />
7876
<Route path="/privacy" element={<Privacy />} />
7977
<Route

frontend/src/components/layout/GuestNavigation.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import { useLocation, Link } from "react-router-dom";
22

33
const navigationItems = [
4-
{ path: "#pricing", label: "Pricing", type: "anchor" },
5-
{ path: "/careers", label: "Careers", type: "link" }
4+
{ path: "#pricing", label: "Pricing", type: "anchor" }
65
];
76

87
export default function GuestNavigation() {

frontend/src/pages/Careers.tsx

Lines changed: 0 additions & 283 deletions
This file was deleted.

frontend/src/pages/HomePage.tsx

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,13 @@ import { PageHeader } from "../components/ui";
7676
*/
7777

7878
export default function HomePage() {
79-
const { profile } = useAuth();
79+
const { profile } = useAuth();
8080
const [recommendedTenders, setRecommendedTenders] = useState<
8181
TenderSearchResult[]
8282
>([]);
83-
const [dashboardData, setDashboardData] = useState<DashboardData | null>(null);
83+
const [dashboardData, setDashboardData] = useState<DashboardData | null>(
84+
null
85+
);
8486
const [activities, setActivities] = useState<Activity[]>([]);
8587
const [loading, setLoading] = useState(true);
8688
const [error, setError] = useState<string | null>(null);
@@ -106,15 +108,17 @@ export default function HomePage() {
106108

107109
// Track page view
108110
await analyticsAPI.trackActivity({
109-
actionType: 'page_view',
110-
resourceType: 'dashboard',
111-
pageUrl: '/home',
111+
actionType: "page_view",
112+
resourceType: "dashboard",
113+
pageUrl: "/home",
112114
sessionId: Date.now().toString(),
113115
});
114116
} catch (err) {
115117
console.error("Failed to fetch dashboard data:", err);
116-
setError(err instanceof Error ? err.message : 'Failed to load dashboard data');
117-
118+
setError(
119+
err instanceof Error ? err.message : "Failed to load dashboard data"
120+
);
121+
118122
// Load user activities
119123
let activities: Activity[] = [];
120124
try {
@@ -175,7 +179,9 @@ export default function HomePage() {
175179
<div className="h-full flex flex-col items-center justify-center space-y-4">
176180
<div className="text-center">
177181
<HouseIcon className="w-16 h-16 text-gray-400 mx-auto mb-4" />
178-
<h2 className="text-xl font-semibold text-text mb-2">Dashboard Unavailable</h2>
182+
<h2 className="text-xl font-semibold text-text mb-2">
183+
Dashboard Unavailable
184+
</h2>
179185
<p className="text-error text-sm mb-4">{error}</p>
180186
<button
181187
onClick={() => window.location.reload()}
@@ -195,16 +201,19 @@ export default function HomePage() {
195201
<PageHeader
196202
icon={<HouseIcon className="w-10 h-10 text-primary" />}
197203
title="Dashboard"
198-
description={`Welcome back, ${profile?.company_name || 'User'}`}
204+
description={`Welcome back, ${profile?.company_name || "User"}`}
199205
/>
200-
206+
201207
{/* Stats Grid */}
202208
{dashboardData ? (
203209
<DashboardStatsGrid data={dashboardData} loading={loading} />
204210
) : (
205211
<div className="grid grid-cols-2 lg:grid-cols-6 gap-4">
206212
{Array.from({ length: 6 }).map((_, index) => (
207-
<div key={index} className="bg-surface border border-border rounded-lg p-4 animate-pulse">
213+
<div
214+
key={index}
215+
className="bg-surface border border-border rounded-lg p-4 animate-pulse"
216+
>
208217
<div className="h-8 w-8 bg-gray-300 rounded-lg mb-3"></div>
209218
<div className="h-6 bg-gray-300 rounded mb-2"></div>
210219
<div className="h-4 bg-gray-300 rounded w-3/4"></div>
@@ -214,13 +223,6 @@ export default function HomePage() {
214223
)}
215224
</div>
216225

217-
{/* Quick Actions */}
218-
<QuickActions
219-
newTodayCount={dashboardData?.tenderStats.newToday}
220-
bookmarkedCount={dashboardData?.tenderStats.bookmarked}
221-
urgentDeadlines={dashboardData?.tenderStats.expiringSoon}
222-
/>
223-
224226
{/* Main Dashboard Content */}
225227
<div className="grid grid-cols-1 lg:grid-cols-3 gap-6 flex-1">
226228
{/* ROI Calculator - Takes 2 columns on large screens */}

0 commit comments

Comments
 (0)