Merge branch 'main' of https://github.com/csc309-winter-2022/team58
This commit is contained in:
commit
8492c82e4f
@ -5,6 +5,7 @@ import SignUp from './SignUp';
|
|||||||
import Admin from './Admin';
|
import Admin from './Admin';
|
||||||
import Home from './Home';
|
import Home from './Home';
|
||||||
import ChatWindow from './ChatWindow';
|
import ChatWindow from './ChatWindow';
|
||||||
|
import UserDashboard from './UserDashboard';
|
||||||
function App() {
|
function App() {
|
||||||
return (
|
return (
|
||||||
<div className="App">
|
<div className="App">
|
||||||
@ -14,6 +15,7 @@ function App() {
|
|||||||
<Route path="sign-up" element={<SignUp />} />
|
<Route path="sign-up" element={<SignUp />} />
|
||||||
<Route path="admin" element={<Admin />} />
|
<Route path="admin" element={<Admin />} />
|
||||||
<Route path="chat-window" element={<ChatWindow />} />
|
<Route path="chat-window" element={<ChatWindow />} />
|
||||||
|
<Route path="user-dashboard" element={<UserDashboard />} />
|
||||||
</Routes>
|
</Routes>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
@ -98,7 +98,7 @@ export default function Navbar() {
|
|||||||
{pages.map((page) => (
|
{pages.map((page) => (
|
||||||
<Button
|
<Button
|
||||||
key={page}
|
key={page}
|
||||||
onClick={handleCloseNavMenu}
|
onClick={() => { navigate('/user-dashboard') }}
|
||||||
sx={{ my: 2, color: 'white', display: 'block', textTransform: 'none', fontSize: '100%' }}
|
sx={{ my: 2, color: 'white', display: 'block', textTransform: 'none', fontSize: '100%' }}
|
||||||
>
|
>
|
||||||
{page}
|
{page}
|
||||||
|
@ -12,11 +12,13 @@ import Filter from "./Filter";
|
|||||||
import SearchBar from "./SearchBar";
|
import SearchBar from "./SearchBar";
|
||||||
import { useNavigate } from 'react-router-dom';
|
import { useNavigate } from 'react-router-dom';
|
||||||
import MatchesList from './MatchesList';
|
import MatchesList from './MatchesList';
|
||||||
|
import Navbar from './Navbar';
|
||||||
|
|
||||||
export default function UserDashboard() {
|
export default function UserDashboard() {
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
|
<Navbar></Navbar>
|
||||||
<SearchBar></SearchBar>
|
<SearchBar></SearchBar>
|
||||||
<Filter></Filter>
|
<Filter></Filter>
|
||||||
<MatchesList></MatchesList>
|
<MatchesList></MatchesList>
|
||||||
|
Loading…
Reference in New Issue
Block a user