-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDetail.js
More file actions
27 lines (24 loc) · 825 Bytes
/
Copy pathDetail.js
File metadata and controls
27 lines (24 loc) · 825 Bytes
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
import React from 'react';
const Detail = ({album, artists, name}) => {
return (
<div className="offset-md-1 col-sm-4" >
<div className="row col-sm-12 px-0">
<img
src={album.images[0].url}
alt={name}>
</img>
</div>
<div className="row col-sm-12 px-0">
<label htmlFor={name} className="form-label col-sm-12">
{name}
</label>
</div>
<div className="row col-sm-12 px-0">
<label htmlFor={artists[0].name} className="form-label col-sm-12">
{artists[0].name}
</label>
</div>
</div>
);
}
export default Detail;