Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fahrtenbuch
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWP WS21_22 - Fahrtenbuch
Team Einhorn
fahrtenbuch
Commits
b712f0f8
Commit
b712f0f8
authored
3 years ago
by
Alexander Rudolph
Browse files
Options
Downloads
Patches
Plain Diff
add new routes for staff views
parent
98d4d7f5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
client/src/Router.tsx
+5
-0
5 additions, 0 deletions
client/src/Router.tsx
with
5 additions
and
0 deletions
client/src/Router.tsx
+
5
−
0
View file @
b712f0f8
import
React
from
"
react
"
;
import
React
from
"
react
"
;
import
{
BrowserRouter
,
Route
,
Routes
}
from
"
react-router-dom
"
;
import
{
BrowserRouter
,
Route
,
Routes
}
from
"
react-router-dom
"
;
import
StaffLayout
from
"
./components/StaffLayout
"
;
import
UserLayout
from
"
./components/UserLayout
"
;
import
UserLayout
from
"
./components/UserLayout
"
;
import
BoatOverview
from
"
./pages/BoatOverview
"
;
import
BookingForm
from
"
./pages/BookingForm
"
;
import
BookingForm
from
"
./pages/BookingForm
"
;
import
BookingSignOut
from
"
./pages/BookingSignOut
"
;
import
BookingSignOut
from
"
./pages/BookingSignOut
"
;
import
BookingSignOutSuccess
from
"
./pages/BookingSignOutSuccess
"
;
import
BookingSignOutSuccess
from
"
./pages/BookingSignOutSuccess
"
;
...
@@ -31,6 +33,9 @@ function Router() {
...
@@ -31,6 +33,9 @@ function Router() {
<
Route
path
=
"success"
element
=
{
<
BookingSignOutSuccess
/>
}
/>
<
Route
path
=
"success"
element
=
{
<
BookingSignOutSuccess
/>
}
/>
</
Route
>
</
Route
>
</
Route
>
</
Route
>
<
Route
path
=
"staff"
element
=
{
<
StaffLayout
/>
}
>
<
Route
path
=
"overview"
element
=
{
<
BoatOverview
/>
}
/>
</
Route
>
</
Routes
>
</
Routes
>
</
BrowserRouter
>
</
BrowserRouter
>
);
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment