Skip to content

Commit 62af98f

Browse files
Revert "Create page to show saved opportunities (#165)"
This reverts commit 129f18a.
1 parent 129f18a commit 62af98f

8 files changed

Lines changed: 21 additions & 172 deletions

File tree

‎package-lock.json‎

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/App.tsx‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Home from "./shared/pages/Home.tsx";
55
import PageNotFound from "./shared/pages/404.tsx";
66
import MainNavigation from "./shared/components/Navigation/MainNavigation.tsx";
77
import StickyFooter from "./shared/components/Navigation/StickyFooter.tsx";
8-
import ProfilePage from "./individuals/pages/Profile.tsx";
8+
import ProfilePage from "./shared/pages/Profile.tsx";
99
import Departments from "./staff/pages/Departments.tsx";
1010
import StaffPage from "./staff/pages/Staff.tsx";
1111
import Department from "./staff/pages/Department.tsx";
@@ -15,7 +15,6 @@ import LogoutRedirection from "./auth/Logout.tsx";
1515
import Token from "./auth/Token.tsx";
1616
import Opportunities from "./opportunities/pages/Opportunities.tsx";
1717
import IndividualPost from "./opportunities/pages/IndividualPost.tsx";
18-
import SavedPage from "./individuals/pages/Saved.tsx";
1918
import { HelmetProvider } from 'react-helmet-async';
2019
import { AuthProvider } from './context/AuthContext.tsx';
2120

@@ -36,11 +35,7 @@ function App() {
3635
<Route path="/logout" element={<LogoutRedirection />} />
3736
<Route path="/opportunities" element={<Opportunities />} />
3837
<Route path="/profile" element={<ProfilePage />} />
39-
<Route path="/saved" element={<SavedPage />} />
40-
<Route
41-
path="/staff/department/:department"
42-
element={<Department />}
43-
/>
38+
<Route path="/staff/department/:department" element={<Department />} />
4439
<Route path="/staff" element={<Departments />} />
4540
<Route path="/staff/:staffId" element={<StaffPage />} />
4641
<Route path="/create" element={<CreatePost edit={false} />} />

‎src/individuals/pages/Saved.tsx‎

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

‎src/shared/components/Navigation/MainNavigation.tsx‎

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,12 @@ export default function MainNavigation() {
2121
// Define navigation routes based on authentication.
2222
const routes = auth.isAuthenticated
2323
? [
24-
{ name: "Opportunities", href: "/opportunities" },
25-
{ name: "Create", href: "/create" },
26-
{ name: "Staff", href: "/staff" },
27-
{ name: "Profile", href: "/profile" },
28-
{ name: "Saved", href: "/saved" },
29-
{ name: "Sign Out", href: "/signout" }
30-
]
24+
{ name: "Opportunities", href: "/opportunities" },
25+
{ name: "Create", href: "/create" },
26+
{ name: "Staff", href: "/staff" },
27+
{ name: "Profile", href: "/profile" },
28+
{ name: "Sign Out", href: "/signout" }
29+
]
3130
: [{ name: "Sign In", href: "/signin" }];
3231

3332
return (
@@ -54,7 +53,8 @@ export default function MainNavigation() {
5453
key={item.name}
5554
to={item.href}
5655
className={({ isActive }) =>
57-
`text-2xl font-bold hover:underline ${isActive ? "underline" : ""
56+
`text-2xl font-bold hover:underline ${
57+
isActive ? "underline" : ""
5858
}`
5959
}
6060
>
@@ -75,8 +75,9 @@ export default function MainNavigation() {
7575
/>
7676
<div className="w-11 h-6 bg-gray-300 dark:bg-gray-600 rounded-full" />
7777
<div
78-
className={`absolute left-1 top-1 bg-white w-4 h-4 rounded-full transition-transform ${isDarkMode ? "translate-x-5" : ""
79-
}`}
78+
className={`absolute left-1 top-1 bg-white w-4 h-4 rounded-full transition-transform ${
79+
isDarkMode ? "translate-x-5" : ""
80+
}`}
8081
></div>
8182
</div>
8283
<span className="ml-3 text-white text-lg font-bold">
@@ -117,8 +118,9 @@ export default function MainNavigation() {
117118
/>
118119
<div className="w-11 h-6 bg-gray-300 dark:bg-gray-600 rounded-full peer-focus:outline-none peer-checked:bg-blue-600 relative transition-all duration-300">
119120
<div
120-
className={`absolute left-1 top-1 bg-white dark:bg-gray-300 w-4 h-4 rounded-full transition-transform duration-300 ${isDarkMode ? "translate-x-5" : ""
121-
}`}
121+
className={`absolute left-1 top-1 bg-white dark:bg-gray-300 w-4 h-4 rounded-full transition-transform duration-300 ${
122+
isDarkMode ? "translate-x-5" : ""
123+
}`}
122124
></div>
123125
</div>
124126
<span className="ml-3 text-gray-700 dark:text-gray-200 font-medium">
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useEffect } from "react";
22
import { useState } from "react";
3-
import ProfileComponents from "../../shared/components/Profile/ProfileComponents.tsx";
3+
import ProfileComponents from "../components/Profile/ProfileComponents.tsx";
44
import { useAuth } from "../../context/AuthContext.tsx";
55
import { Profile } from "../../types/profile.ts";
66
// import EditProfile from "./EditProfile";

‎src/staff/pages/Departments.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default function Departments() {
4646
return (
4747
<>
4848
<SEO title="Departments - Labconnect" description="Labconnect departments page" />
49-
<h1 className="text-center my-4 text-4xl font-extrabold leading-none tracking-tight text-gray-900 md:text-5xl lg:text-6xl">
49+
<h1 className="mb-4 text-4xl font-extrabold leading-none tracking-tight text-gray-900 md:text-5xl lg:text-6xl">
5050
Departments
5151
</h1>
5252
{!departments && "Loading..."}

‎src/types/opportunity.ts‎

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

‎src/utils.ts‎

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

0 commit comments

Comments
 (0)