Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
H
hw87AlenBolatov
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
Болатов Ален
hw87AlenBolatov
Commits
a7046027
Commit
a7046027
authored
Mar 26, 2023
by
Болатов Ален
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slight refactoring
parent
edf4286f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
Layout.tsx
frontend/src/components/Layout/Layout.tsx
+1
-1
HomePage.tsx
frontend/src/containers/HomePage.tsx
+2
-2
Tracks.tsx
frontend/src/containers/Tracks.tsx
+1
-1
No files found.
frontend/src/components/Layout/Layout.tsx
View file @
a7046027
import
React
from
'react'
;
import
{
Outlet
}
from
'react-router-dom'
;
const
Layout
=
()
=>
{
const
Layout
:
React
.
FunctionComponent
=
():
React
.
ReactElement
=>
{
return
(
<
div
className=
"container mx-auto px-96"
>
<
Outlet
/>
...
...
frontend/src/containers/HomePage.tsx
View file @
a7046027
import
React
,
{
useEffect
}
from
'react'
;
import
{
getArtists
,
selectArtists
}
from
'../features/artist/artistSlice'
;
import
{
getArtists
}
from
'../features/artist/artistSlice'
;
import
{
useAppDispatch
,
useAppSelector
}
from
'../store/hooks'
;
import
{
useNavigate
}
from
'react-router-dom'
;
const
HomePage
=
()
=>
{
const
HomePage
:
React
.
FunctionComponent
=
():
React
.
ReactElement
=>
{
const
{
artists
}
=
useAppSelector
((
state
)
=>
state
.
artist
);
const
dispatch
=
useAppDispatch
();
const
navigate
=
useNavigate
();
...
...
frontend/src/containers/Tracks.tsx
View file @
a7046027
...
...
@@ -3,7 +3,7 @@ import {useLocation} from 'react-router-dom';
import
{
getTracksByQuery
}
from
'../features/track/trackSlice'
;
import
{
useAppDispatch
,
useAppSelector
}
from
'../store/hooks'
;
const
Tracks
=
()
=>
{
const
Tracks
:
React
.
FunctionComponent
=
():
React
.
ReactElement
=>
{
const
{
state
}
=
useLocation
();
const
{
tracks
}
=
useAppSelector
((
state
)
=>
state
.
track
);
const
dispatch
=
useAppDispatch
();
...
...
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