mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-12 16:13:02 -04:00
fix message hover buttons... again
This commit is contained in:
parent
d1996034b7
commit
021d9bf179
2 changed files with 4 additions and 4 deletions
|
@ -50,18 +50,18 @@ export function removeButton(identifier: string) {
|
|||
|
||||
export function _buildPopoverElements(
|
||||
Component: React.ComponentType<ButtonItem>,
|
||||
props: { message: Message; }
|
||||
message: Message
|
||||
) {
|
||||
const items: React.ReactNode[] = [];
|
||||
|
||||
for (const [identifier, getItem] of buttons.entries()) {
|
||||
try {
|
||||
const item = getItem(props.message);
|
||||
const item = getItem(message);
|
||||
if (item) {
|
||||
item.key ??= identifier;
|
||||
items.push(
|
||||
<ErrorBoundary noop>
|
||||
<Component {...item} {...props} />
|
||||
<Component {...item} />
|
||||
</ErrorBoundary>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue