Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
react-material
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
During summer vacation, Gitlab will be restart frequently. Use it carefully.
Show more breadcrumbs
nahyun
react-material
Commits
41f5fd2b
Commit
41f5fd2b
authored
Jul 27, 2023
by
nahyun
Browse files
Options
Downloads
Patches
Plain Diff
수정
parent
a1956127
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#8481
passed
Jul 27, 2023
Stage: deploy
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/favorites.js
+15
-1
15 additions, 1 deletion
src/favorites.js
with
15 additions
and
1 deletion
src/favorites.js
+
15
−
1
View file @
41f5fd2b
import
React
from
'
react
'
;
//
import React from 'react';
import
{
Typography
}
from
'
@mui/material
'
;
import
MusicList
from
'
./MusicList
'
;
import
axios
from
'
axios
'
;
import
React
,
{
useEffect
}
from
'
react
'
;
const
Favorites
=
({
list
,
onLike
})
=>
{
useEffect
(()
=>
{
axios
.
get
(
'
/likes
'
)
.
then
((
response
)
=>
{
const
data
=
response
.
data
;
setFavorites
(
data
);
})
.
catch
((
error
)
=>
{
console
.
error
(
'
Error:
'
,
error
);
});
},
[]);
return
(
<
React
.
Fragment
>
<
MusicList
list
=
{
list
}
onLike
=
{
onLike
}
/
>
...
...
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