mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-23 13:27:03 -04:00
Fix clipboard api, IrcColors, and Memberlist Decorators (#3383)
Co-authored-by: Vending Machine <vendicated@riseup.net>
This commit is contained in:
parent
82f9cd1d3a
commit
524202e49d
16 changed files with 58 additions and 66 deletions
|
@ -5,7 +5,8 @@
|
|||
*/
|
||||
|
||||
import { CopyIcon, DeleteIcon } from "@components/Icons";
|
||||
import { Alerts, Clipboard, ContextMenuApi, Menu, UserStore } from "@webpack/common";
|
||||
import { copyToClipboard } from "@utils/clipboard";
|
||||
import { Alerts, ContextMenuApi, Menu, UserStore } from "@webpack/common";
|
||||
|
||||
import { Decoration } from "../../lib/api";
|
||||
import { useCurrentUserDecorationsStore } from "../../lib/stores/CurrentUserDecorationsStore";
|
||||
|
@ -23,7 +24,7 @@ export default function DecorationContextMenu({ decoration }: { decoration: Deco
|
|||
id={cl("decoration-context-menu-copy-hash")}
|
||||
label="Copy Decoration Hash"
|
||||
icon={CopyIcon}
|
||||
action={() => Clipboard.copy(decoration.hash)}
|
||||
action={() => copyToClipboard(decoration.hash)}
|
||||
/>
|
||||
{decoration.authorId === UserStore.getCurrentUser().id &&
|
||||
<Menu.MenuItem
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue