This commit is contained in:
Harrison Deng 2022-03-07 21:05:15 -06:00
commit 8492c82e4f
3 changed files with 5 additions and 1 deletions

View File

@ -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>
); );

View File

@ -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}

View File

@ -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>