Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
planner-team-one
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
21
Issues
21
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Евгений Положенцев
planner-team-one
Commits
69b665e4
Commit
69b665e4
authored
Nov 02, 2022
by
Ermolaev Timur
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#13
Добавил роуты для перехода по страницам
parent
0373b9dc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
7 deletions
+32
-7
App.js
planner-front/src/App.js
+32
-7
No files found.
planner-front/src/App.js
View file @
69b665e4
import
{
Routes
,
Route
,
Outlet
,
Navigate
,
BrowserRouter
}
from
"react-router-dom"
;
import
{
Container
}
from
"@mui/material"
;
import
{
useSelector
}
from
"react-redux"
;
function
App
()
{
const
App
=
()
=>
{
return
(
return
(
<
div
className
=
"App"
>
<
BrowserRouter
>
sadas
<
Routes
>
<
/div
>
<
Route
element
=
{
);
<>
}
<
span
>
header
<
/span
>
<
main
>
<
Container
>
<
Outlet
/>
<
/Container
>
<
/main
>
<
/
>
}
>
<
Route
path
=
{
"/"
}
element
=
{
<
h1
>
week
page
<
/h1>}/
>
<
Route
path
=
{
"/week"
}
element
=
{
<
h1
>
week
page
<
/h1>}/
>
<
Route
path
=
{
"/month"
}
element
=
{
<
h1
>
month
page
<
/h1>}/
>
<
Route
path
=
{
"/mytasks"
}
element
=
{
<
h1
>
my
tasks
page
<
/h1>}/
>
<
Route
path
=
{
"/workerstasks"
}
element
=
{
<
h1
>
workers
tasks
page
<
/h1>}/
>
<
Route
path
=
{
"/profile/:id"
}
element
=
{
<
h1
>
profile
page
<
/h1>}/
>
<
Route
path
=
{
"/sign-up"
}
element
=
{
<
h1
>
sign
-
up
page
<
/h1>}/
>
<
Route
path
=
{
"/log-in"
}
element
=
{
<
h1
>
log
-
in
page
<
/h1>}/
>
<
Route
path
=
'*'
element
=
{
<
h1
>
404
<
/h1>}/
>
<
/Route
>
<
/Routes
>
<
/BrowserRouter
>
)
};
export
default
App
;
export
default
App
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment