-
Notifications
You must be signed in to change notification settings - Fork 0
/
mt_app.js
57 lines (48 loc) · 1.18 KB
/
mt_app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import React, { useState } from 'react';
import ArtistProfile from './mt_api';
function App() {
const [showArtistProfile, setShowArtistProfile] = useState(false);
const handleSubmission = () => {
document.getElementById("submit").disabled = true;
setShowArtistProfile(true);
};
return (
<div className="Apps">
<br />
<br />
<div className='Head'>
<h1 >Mood Tunes</h1>
<h1 >Mood Tunes</h1>
</div>
<br />
<br />
<br />
<br />
<select id="ArtistSelect" className="Artist">
<option value="Taylor Swift">Taylor Swift</option>
<option value="AR Rahman">AR Rahman</option>
<option value="Shreya Ghosal">Shreya Goshal</option>
</select>
<input type="submit" id = "submit" onClick={handleSubmission} />
<br />
<br />
<br />
<br />
<br />
<br />
<div className='Result'>
{showArtistProfile && <ArtistProfile />}
</div>
<br></br>
<br></br>
<br></br>
<br></br>
<br></br>
<br></br>
<br></br>
<br></br>
<br></br>
</div>
);
}
export default App;