Albums page data and CSS

This commit is contained in:
Rodrigo Pinto 2019-12-16 18:38:48 -05:00
commit d581d87f89
8 changed files with 89 additions and 10 deletions

View file

@ -23,7 +23,7 @@ function ArtistSearch({ props }) {
// Search artists
useEffect(() => {
if (search && search.length > 4) {
if (search && search.length > 2) {
spotifyApi.searchArtists(search)
.then(function(data) {
setArtists(data.artists.items)
@ -56,7 +56,7 @@ function ArtistSearch({ props }) {
}
return (
<div className="artist-search">
<div className="spotify">
<h1>Artist search</h1>
<input placeholder='Search for an artist' onChange={handleChange} />