Skip to content

Commit

Permalink
Merge pull request #42 from UoaWDCC/karmveer/web/adding-screens
Browse files Browse the repository at this point in the history
Karmveer/web/adding screens
  • Loading branch information
gmat224 authored Apr 19, 2024
2 parents 00a1981 + 537871c commit 40aa53f
Show file tree
Hide file tree
Showing 7 changed files with 57 additions and 2 deletions.
12 changes: 11 additions & 1 deletion web/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@ import { RouterProvider } from 'react-router-dom';
import App from './App.tsx';
import './index.css';

import HomeScreen from "./screens/Home.tsx"
import HomeScreen from "./screens/HomeScreen.tsx"
import TestScreen from "./screens/Test.tsx"
import ExecScreen from "./screens/ExecScreen.tsx";
import LoginScreen from "./screens/LoginScreen.tsx";
import SignUpScreen from "./screens/SignUpScreen.tsx";
import PhotosScreen from "./screens/PhotosScreen.tsx";
import PPVScreen from "./screens/PPVScreen.tsx";


//Add any routes for screens below
Expand All @@ -17,6 +22,11 @@ const router = createBrowserRouter(
<Route path="/" element={<App />}>
<Route index={true} element={<HomeScreen />} />
<Route path="/test" element={<TestScreen />} />
<Route path="/exec" element={<ExecScreen />} />
<Route path="/login" element={<LoginScreen />} />
<Route path="/signup" element={<SignUpScreen />} />
<Route path="/pvv" element={<PPVScreen />} />
<Route path="/photos" element={<PhotosScreen />} />
</Route>
)
);
Expand Down
9 changes: 9 additions & 0 deletions web/src/screens/ExecScreen.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
function ExecScreen() {
return (
<div>
<h2> Exec Screen</h2>
</div>
)
}

export default ExecScreen
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import axios from 'axios';
import { useParams } from 'react-router';
import urls from '@utils/urls';

export default function Home() {
export default function HomeScreen() {
const { name } = useParams();

const { data, isLoading, isError, error } = useQuery({
Expand Down
9 changes: 9 additions & 0 deletions web/src/screens/LoginScreen.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
function LoginScreen() {
return (
<div>
<h2> Login Screen</h2>
</div>
)
}

export default LoginScreen
9 changes: 9 additions & 0 deletions web/src/screens/PPVScreen.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
function PPVScreen() {
return (
<div>
<h2> PPV Screen</h2>
</div>
)
}

export default PPVScreen
9 changes: 9 additions & 0 deletions web/src/screens/PhotosScreen.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
function PhotosScreen() {
return (
<div>
<h2> PhotosScreen Screen</h2>
</div>
)
}

export default PhotosScreen
9 changes: 9 additions & 0 deletions web/src/screens/SignUpScreen.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
function SignUpScreen() {
return (
<div>
<h2> Sign Up Screen</h2>
</div>
)
}

export default SignUpScreen

0 comments on commit 40aa53f

Please sign in to comment.