diff --git a/src/App.tsx b/src/App.tsx index 6896e7a..33673c0 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,7 +1,7 @@ import React from "react"; import { Route, Routes } from "react-router-dom"; import { Navbar } from "./components"; -import { Academics, Upload, Clubs, Careers, Instructions, Welcome } from "./pages"; +import { Academics, Upload, Clubs, Careers, Instructions, Welcome, UploadFile, UploadLink, UploadInput } from "./pages"; // import Navbar from "./components/Navbar"; // import Home from "./pages/Home"; // import Academics from "./pages/Academics"; @@ -19,11 +19,14 @@ function App() {
} /> - } /> - } /> } /> } /> } /> + } /> + } /> + } /> + } /> + } /> } />
diff --git a/src/pages/Upload.tsx b/src/pages/Upload.tsx index 4e3b9d9..3946cf4 100644 --- a/src/pages/Upload.tsx +++ b/src/pages/Upload.tsx @@ -1,22 +1,34 @@ import React from "react"; +import { useNavigate } from "react-router-dom"; const AcademicButton: React.FC = () => { + let navigate = useNavigate(); + const routeChange = () => { + let path = `/upload/file`; + navigate(path); + }; + return ( ); - -} +}; const ClubButton: React.FC = () => { + let navigate = useNavigate(); + const routeChange = () => { + let path = `/upload/file`; + navigate(path); + }; + return ( @@ -37,6 +49,6 @@ const Upload: React.FC = () => { ); -} +}; -export {Upload}; +export { Upload }; diff --git a/src/pages/UploadFile.tsx b/src/pages/UploadFile.tsx new file mode 100644 index 0000000..2fc1e94 --- /dev/null +++ b/src/pages/UploadFile.tsx @@ -0,0 +1,12 @@ +import React from "react"; +import { useNavigate } from "react-router-dom"; + +function UploadFile() { + return( + <> +

File

+ + ) +} + +export {UploadFile}; diff --git a/src/pages/UploadInput.tsx b/src/pages/UploadInput.tsx new file mode 100644 index 0000000..5dd3e60 --- /dev/null +++ b/src/pages/UploadInput.tsx @@ -0,0 +1,12 @@ +import React from "react"; +import { useNavigate } from "react-router-dom"; + +function UploadInput() { + return( + <> +

Input

+ + ) +} + +export {UploadInput}; diff --git a/src/pages/UploadLink.tsx b/src/pages/UploadLink.tsx new file mode 100644 index 0000000..66d37e4 --- /dev/null +++ b/src/pages/UploadLink.tsx @@ -0,0 +1,12 @@ +import React from "react"; +import { useNavigate } from "react-router-dom"; + +function UploadLink() { + return( + <> +

Link

+ + ) +} + +export {UploadLink}; diff --git a/src/pages/Welcome.tsx b/src/pages/Welcome.tsx index 03e0f1d..6aa1334 100644 --- a/src/pages/Welcome.tsx +++ b/src/pages/Welcome.tsx @@ -1,5 +1,6 @@ import React from "react"; import { GoogleLogin } from "@react-oauth/google"; +import { useNavigate } from "react-router-dom"; function GoogleSigninButton() { return ( @@ -21,9 +22,15 @@ interface GuestSigninButtonProps { } const GuestSigninButton: React.FC = ({ onClick }) => { + let navigate = useNavigate(); + const routeChange = () =>{ + let path = `/home/academics`; + navigate(path); + } + return (