mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-11 02:16:23 +00:00
refactor(mediaPlaybackSpeed): spread all tooltip props
Co-authored-by: vee <vendicated@riseup.net>
This commit is contained in:
parent
065575718d
commit
aec59be3f5
1 changed files with 2 additions and 3 deletions
|
@ -34,11 +34,10 @@ export default definePlugin({
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Tooltip text="Playback speed">
|
<Tooltip text="Playback speed">
|
||||||
{({ onMouseEnter, onMouseLeave }) => (
|
{tooltipProps => (
|
||||||
<button
|
<button
|
||||||
|
{...tooltipProps}
|
||||||
className={cl("icon")}
|
className={cl("icon")}
|
||||||
onMouseEnter={onMouseEnter}
|
|
||||||
onMouseLeave={onMouseLeave}
|
|
||||||
onClick={e => {
|
onClick={e => {
|
||||||
ContextMenuApi.openContextMenu(e, () =>
|
ContextMenuApi.openContextMenu(e, () =>
|
||||||
<Menu.Menu
|
<Menu.Menu
|
||||||
|
|
Loading…
Reference in a new issue