Skip to content

Commit 6bc64de

Browse files
authored
Merge pull request #30 from sfuosdev/fix-non-router-links
Fix non-router links on Home Page
2 parents 98d036b + cc88aae commit 6bc64de

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/components/Home.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import React from 'react'
2+
import { Link } from 'react-router-dom';
3+
24

35
const Home = () => {
46
return (
@@ -36,15 +38,15 @@ const Home = () => {
3638

3739
{/* Right Side (button links) */}
3840
<div className="md:w-1/2 flex flex-col items-start md:items-end space-y-6">
39-
<a href="/projects" className="flex flex-row px-4 py-2 rounded w-full max-w-[325px] btn btn-primary text-left text-white transition duration-300">
41+
<Link to="/projects" className="flex flex-row px-4 py-2 rounded w-full max-w-[325px] btn btn-primary text-left text-white transition duration-300">
4042
<p className="mr-4">&gt;</p>./PROJECTS
41-
</a>
42-
<a href="/events" className="flex flex-row px-4 py-2 rounded w-full max-w-[325px] btn btn-primary text-left text-white transition duration-300">
43+
</Link>
44+
<Link to="/events" className="flex flex-row px-4 py-2 rounded w-full max-w-[325px] btn btn-primary text-left text-white transition duration-300">
4345
<p className="mr-4">&gt;</p>./EVENTS
44-
</a>
45-
<a href="/teams" className="flex flex-row px-4 py-2 rounded w-full max-w-[325px] btn btn-primary text-left text-white transition duration-300">
46+
</Link>
47+
<Link to="/teams" className="flex flex-row px-4 py-2 rounded w-full max-w-[325px] btn btn-primary text-left text-white transition duration-300">
4648
<p className="mr-4">&gt;</p>./TEAMS
47-
</a>
49+
</Link>
4850
</div>
4951
</div>
5052

0 commit comments

Comments
 (0)