Move: play button after info button in dialog
This commit is contained in:
@@ -17,14 +17,6 @@ function FileDialog(props) {
|
|||||||
<br />
|
<br />
|
||||||
Info for more actions.
|
Info for more actions.
|
||||||
</p>
|
</p>
|
||||||
<button
|
|
||||||
onClick={() => {
|
|
||||||
props.setPlayingFile(props.file);
|
|
||||||
props.setShowStatus(false);
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
Play
|
|
||||||
</button>
|
|
||||||
<button
|
<button
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
navigate(`/files/${props.file.id}`);
|
navigate(`/files/${props.file.id}`);
|
||||||
@@ -33,6 +25,14 @@ function FileDialog(props) {
|
|||||||
>
|
>
|
||||||
Info
|
Info
|
||||||
</button>
|
</button>
|
||||||
|
<button
|
||||||
|
onClick={() => {
|
||||||
|
props.setPlayingFile(props.file);
|
||||||
|
props.setShowStatus(false);
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
Play
|
||||||
|
</button>
|
||||||
<button onClick={() => props.setShowStatus(false)}>Close</button>
|
<button onClick={() => props.setShowStatus(false)}>Close</button>
|
||||||
</dialog>
|
</dialog>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user