Skip to content

Commit 68f22b3

Browse files
Merge pull request #147 from umdevclub/feat/merchRoute
feat!: Added a merch route
2 parents 87ffdf9 + 02f0fd3 commit 68f22b3

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

src/components/AreWeThereYet.tsx

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

src/routes/App.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import LinkTree from "./LinkTree";
2727
import RootLayout from "./layouts/RootLayout";
2828
import PageNotFound from "./PageNotFound";
2929
import Events from "./Events";
30-
// import { formRedirectLoader } from "./FormRedirect";
30+
import Merch from "./Merch";
3131

3232
const router = createBrowserRouter(
3333
createRoutesFromElements(
@@ -48,6 +48,7 @@ const router = createBrowserRouter(
4848
<Route path="/link-tree" element={<LinkTree />} />
4949
<Route path="/devhacks" element={<Hackathon />} />
5050
<Route path="/events" element={<Events />} />
51+
<Route path="/merch" element={<Merch />} />
5152
<Route
5253
path="/devhacks/:year"
5354
element={<HackathonArchive />}

src/routes/Merch.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { useEffect } from "react";
2+
3+
const Merch = () => {
4+
useEffect(() => {
5+
window.location.replace("https://forms.gle/RoLQb1MhVuBS72Uq6");
6+
}, []);
7+
8+
return null;
9+
};
10+
11+
export default Merch;

0 commit comments

Comments
 (0)