Skip to content

Commit 22b8511

Browse files
authored
Merge pull request #22 from fac19/add-replace-method-search
Add new headings
2 parents fdd52cd + 1880803 commit 22b8511

4 files changed

Lines changed: 4 additions & 6 deletions

File tree

src/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function App() {
3939
</header>
4040
<main>
4141
{logInToken ? (
42-
<p>Access token aquired. Please search an artist and track</p>
42+
<p>Access token aquired. Please search an artist and track to see the audio features.</p>
4343
) : (
4444
<LogIn logInToken={logInToken} setLogInToken={setLogInToken} />
4545
)}

src/components/results.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ function Results(props) {
66
const { recommendations } = props
77
return (
88
<div className="results-container">
9+
<h2>Track Recommendations</h2>
910
{recommendations && recommendations.length ? recommendations.map((rec, i) => <RenderSong song={rec} key={i}/>)
10-
: "no recommendations"}
11+
: "No song recommendations yet."}
1112
</div>
1213
)
1314
}

src/components/song-filter.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ function SongFilter(props) {
4848

4949
return (
5050
<form>
51+
<h2>Audio Features</h2>
5152
<p>Now tune the search to your mood!</p>
5253
{features.map((feature, i) => (
5354
<label key={i} title={descriptions[feature]} htmlFor={feature}>

src/util/handle-search-track.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ export default function handleSearchTrack(
2121
requestOptions
2222
)
2323
.then((res) => {
24-
console.log(trackSearch.trackSearchValue, trackSearch.artistSearchValue)
25-
console.log(requestOptions)
26-
console.log(token)
27-
console.log(typeof token)
2824
if (res.status !== 200) {
2925
throw new Error(
3026
`Fetch request did not work. Error code: ${res.status}`

0 commit comments

Comments
 (0)