Skip to content

Commit

Permalink
SMA-36: frontend updates
Browse files Browse the repository at this point in the history
  • Loading branch information
MatejFrnka committed Apr 13, 2024
1 parent ff59812 commit ce20d3d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 107 deletions.
2 changes: 0 additions & 2 deletions frontend/sportsmatch-app/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import Login from './pages/Login'
import Signup from './pages/Signup'
import Wrapper from './pages/AppWrapper'
import { AllSportsList } from './pages/AllSportsList'
import UserPage from './pages/UserPage'
import Index from './pages/Index'
import PrivateRoute from './components/PrivateRoute'
import NotFound from './pages/NotFound'
Expand Down Expand Up @@ -43,7 +42,6 @@ function App() {
path="/user/:id/ratings"
element={<Wrapper child={<UserRating />} />}
/>
<Route path="/user" element={<UserPage />}></Route>
<Route path="/user-info" element={<Wrapper child={<UserInfo />} />} />
<Route
path="/host-event"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ function HostEventComponent() {
const event: HostEventDTO = {
dateStart: formattedStartDate,
dateEnd: formattedEndDate,
locationId: selectLocation,
minElo: minElo,
maxElo: maxElo,
title: matchTitle,
sport: selectSport,
locationId: selectLocation!,
}
EventsControllerService.addEvent(event).then((response) => {
navigate('/app')
Expand Down
104 changes: 0 additions & 104 deletions frontend/sportsmatch-app/src/pages/UserPage.tsx

This file was deleted.

0 comments on commit ce20d3d

Please sign in to comment.