Skip to content

Commit 86c5d73

Browse files
UI Meeting Invites (#75)
2 parents 7fe8247 + 760c0c3 commit 86c5d73

9 files changed

Lines changed: 982 additions & 106 deletions

File tree

client/src/App.tsx

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ import Layout from './components/Layout';
44
import Login from './components/Login';
55
import Dashboard from './components/Dashboard';
66
import MatchRequests from './components/MatchRequests';
7-
import Invitations from './components/Invitations';
8-
import LunchMeetings from './components/LunchMeetings';
9-
import Chat from './components/Chat';
7+
import Matches from './components/Matches';
108
import { useAuth0 } from '@auth0/auth0-react';
119
import Profile from './components/Profile';
1210

@@ -79,31 +77,11 @@ const App = ({ toggleColorMode, mode }: AppProps) => {
7977
}
8078
/>
8179
<Route
82-
path="/invitations"
80+
path="/matches"
8381
element={
8482
<ProtectedRoute>
8583
<Layout toggleColorMode={toggleColorMode} mode={mode}>
86-
<Invitations />
87-
</Layout>
88-
</ProtectedRoute>
89-
}
90-
/>
91-
<Route
92-
path="/meetings"
93-
element={
94-
<ProtectedRoute>
95-
<Layout toggleColorMode={toggleColorMode} mode={mode}>
96-
<LunchMeetings />
97-
</Layout>
98-
</ProtectedRoute>
99-
}
100-
/>
101-
<Route
102-
path="/chat"
103-
element={
104-
<ProtectedRoute>
105-
<Layout toggleColorMode={toggleColorMode} mode={mode}>
106-
<Chat />
84+
<Matches />
10785
</Layout>
10886
</ProtectedRoute>
10987
}

client/src/components/Chat.tsx

Lines changed: 0 additions & 18 deletions
This file was deleted.

client/src/components/Invitations.tsx

Lines changed: 0 additions & 18 deletions
This file was deleted.

client/src/components/Layout.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ import { useNavigate, useLocation } from 'react-router-dom';
1515
import AppBar from './AppBar';
1616
import DashboardIcon from '@mui/icons-material/Dashboard';
1717
import EventNoteIcon from '@mui/icons-material/EventNote';
18-
import MailIcon from '@mui/icons-material/Mail';
19-
import LunchDiningIcon from '@mui/icons-material/LunchDining';
20-
import ChatIcon from '@mui/icons-material/Chat';
18+
import RestaurantIcon from '@mui/icons-material/Restaurant';
2119
import Brightness7Icon from '@mui/icons-material/Brightness7';
2220
import Brightness2Icon from '@mui/icons-material/Brightness2';
2321

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

4036
const Layout = ({ children, toggleColorMode, mode }: LayoutProps) => {

client/src/components/LunchMeetings.tsx

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)