mirror of
https://github.com/captbaritone/webamp.git
synced 2026-01-23 10:15:31 +00:00
Fix bug where eject button active state was not shown
This commit is contained in:
parent
9b3ed7004a
commit
101997b787
1 changed files with 8 additions and 1 deletions
|
|
@ -2,10 +2,17 @@ import { memo } from "react";
|
|||
|
||||
import * as Actions from "../../actionCreators";
|
||||
import { useActionCreator } from "../../hooks";
|
||||
import WinampButton from "../WinampButton";
|
||||
|
||||
const Eject = memo(() => {
|
||||
const openMediaFileDialog = useActionCreator(Actions.openMediaFileDialog);
|
||||
return <div id="eject" onClick={openMediaFileDialog} title="Open File(s)" />;
|
||||
return (
|
||||
<WinampButton
|
||||
id="eject"
|
||||
onClick={openMediaFileDialog}
|
||||
title="Open File(s)"
|
||||
/>
|
||||
);
|
||||
});
|
||||
|
||||
export default Eject;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue