mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-19 17:43:50 +00:00
Use fragment
This commit is contained in:
parent
fe88b07ba6
commit
c304a968ca
2 changed files with 5 additions and 3 deletions
|
|
@ -13,9 +13,8 @@ import {
|
|||
import MiniTime from "../MiniTime";
|
||||
import RunningTimeDisplay from "./RunningTimeDisplay";
|
||||
|
||||
// TODO: Use React.Fragment
|
||||
const PlaylistWindow = props => (
|
||||
<div>
|
||||
<React.Fragment>
|
||||
<RunningTimeDisplay />
|
||||
<div className="playlist-action-buttons">
|
||||
<div className="playlist-previous-button" onClick={props.previous} />
|
||||
|
|
@ -26,7 +25,7 @@ const PlaylistWindow = props => (
|
|||
<div className="playlist-eject-button" onClick={props.openFileDialog} />
|
||||
</div>
|
||||
<MiniTime />
|
||||
</div>
|
||||
</React.Fragment>
|
||||
);
|
||||
|
||||
const mapDispatchToProps = {
|
||||
|
|
|
|||
|
|
@ -54,6 +54,7 @@ exports[`PlaylistWindow renders to snapshot 1`] = `
|
|||
<div
|
||||
className="playlist-tracks"
|
||||
onClick={[Function]}
|
||||
onWheel={[Function]}
|
||||
style={
|
||||
Object {
|
||||
"height": "100%",
|
||||
|
|
@ -215,6 +216,7 @@ exports[`PlaylistWindow renders to snapshot 1`] = `
|
|||
>
|
||||
<div
|
||||
className="playlist-previous-button"
|
||||
onClick={[Function]}
|
||||
/>
|
||||
<div
|
||||
className="playlist-play-button"
|
||||
|
|
@ -230,6 +232,7 @@ exports[`PlaylistWindow renders to snapshot 1`] = `
|
|||
/>
|
||||
<div
|
||||
className="playlist-next-button"
|
||||
onClick={[Function]}
|
||||
/>
|
||||
<div
|
||||
className="playlist-eject-button"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue