Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 3 additions & 25 deletions client/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ import Layout from './components/Layout';
import Login from './components/Login';
import Dashboard from './components/Dashboard';
import MatchRequests from './components/MatchRequests';
import Invitations from './components/Invitations';
import LunchMeetings from './components/LunchMeetings';
import Chat from './components/Chat';
import Matches from './components/Matches';
import { useAuth0 } from '@auth0/auth0-react';
import Profile from './components/Profile';

Expand Down Expand Up @@ -79,31 +77,11 @@ const App = ({ toggleColorMode, mode }: AppProps) => {
}
/>
<Route
path="/invitations"
path="/matches"
element={
<ProtectedRoute>
<Layout toggleColorMode={toggleColorMode} mode={mode}>
<Invitations />
</Layout>
</ProtectedRoute>
}
/>
<Route
path="/meetings"
element={
<ProtectedRoute>
<Layout toggleColorMode={toggleColorMode} mode={mode}>
<LunchMeetings />
</Layout>
</ProtectedRoute>
}
/>
<Route
path="/chat"
element={
<ProtectedRoute>
<Layout toggleColorMode={toggleColorMode} mode={mode}>
<Chat />
<Matches />
</Layout>
</ProtectedRoute>
}
Expand Down
18 changes: 0 additions & 18 deletions client/src/components/Chat.tsx

This file was deleted.

18 changes: 0 additions & 18 deletions client/src/components/Invitations.tsx

This file was deleted.

8 changes: 2 additions & 6 deletions client/src/components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ import { useNavigate, useLocation } from 'react-router-dom';
import AppBar from './AppBar';
import DashboardIcon from '@mui/icons-material/Dashboard';
import EventNoteIcon from '@mui/icons-material/EventNote';
import MailIcon from '@mui/icons-material/Mail';
import LunchDiningIcon from '@mui/icons-material/LunchDining';
import ChatIcon from '@mui/icons-material/Chat';
import RestaurantIcon from '@mui/icons-material/Restaurant';
import Brightness7Icon from '@mui/icons-material/Brightness7';
import Brightness2Icon from '@mui/icons-material/Brightness2';

Expand All @@ -32,9 +30,7 @@ interface LayoutProps {
export const menuItems = [
{ text: 'Dashboard', icon: <DashboardIcon />, path: '/dashboard' },
{ text: 'Match Requests', icon: <EventNoteIcon />, path: '/preferences' },
{ text: 'Invitations', icon: <MailIcon />, path: '/invitations' },
{ text: 'Lunch Meetings', icon: <LunchDiningIcon />, path: '/meetings' },
{ text: 'Chat', icon: <ChatIcon />, path: '/chat' },
{ text: 'Matches', icon: <RestaurantIcon />, path: '/matches' },
];

const Layout = ({ children, toggleColorMode, mode }: LayoutProps) => {
Expand Down
39 changes: 0 additions & 39 deletions client/src/components/LunchMeetings.tsx

This file was deleted.

Loading