Skip to content

Commit 291d448

Browse files
committed
fix(homepage):connected studymaterial,bus,floor in home page so that redirect other pages as well
1 parent 7768507 commit 291d448

2 files changed

Lines changed: 7 additions & 9 deletions

File tree

src/components/bottomNavbar.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Book, Calendar2, Home2, Money } from "iconsax-react";
2-
2+
import Link from "next/link";
33
const BottomNavBar = () => {
44
return (
55
<nav className="fixed left-6 right-6 bottom-8 border-t border-gray-300 bg-[var(--main)] max-w-[var(--max-screen-size)] mx-auto text-foreground rounded-2xl">
@@ -11,10 +11,12 @@ const BottomNavBar = () => {
1111
</button>
1212
</li>
1313

14-
{/* Calendar */}
14+
{/* Book */}
1515
<li className="flex flex-col items-center">
1616
<button type="button" className="focus:outline-none">
17+
<Link href="/studymaterial">
1718
<Book size="32" color="var(--text)" />
19+
</Link>
1820
</button>
1921
</li>
2022

src/components/home/QuickActions.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const QuickActions = () => {
1515
},
1616
{
1717
text: "Bus Time",
18-
onClick: () => alert("Bus Time feature coming soon!"),
18+
onClick: () => (window.location.href = "/bus"),
1919
},
2020
{
2121
text: "Lost & Found",
@@ -37,12 +37,8 @@ export const QuickActions = () => {
3737
},
3838
{
3939
text: "College Map",
40-
onClick: () =>
41-
window.open(
42-
"https://app.mappedin.com/map/65fbc2aa7c0c4fe5b4cc4683/directions?floor=m_c235d70c9e691132&location=s_fca685ba2c784ab7&departure=s_c0ed60b6daeada7c",
43-
"_blank",
44-
"noopener,noreferrer",
45-
),
40+
onClick: () => (window.location.href = "/floor"),
41+
4642
},
4743
{
4844
text: "Project Collobaration",

0 commit comments

Comments
 (0)