minor fixes

This commit is contained in:
Ren Amamiya
2023-04-24 15:29:40 +07:00
parent cdbf70591e
commit 3e31e7d4dc
12 changed files with 34 additions and 26 deletions

View File

@@ -28,7 +28,7 @@ export const HideMessageButton = ({ id }: { id: string }) => {
// publish note
pool.publish(event, MESSAGE_RELAYS);
}, [id, pool, MESSAGE_RELAYS]);
}, [activeAccount.pubkey, activeAccount.privkey, id, pool]);
return (
<AlertDialog.Root>

View File

@@ -1,4 +1,4 @@
import ChannelMessageItem from '@components/channels/messages/item';
import { ChannelMessageItem } from '@components/channels/messages/item';
import { sortedChannelMessagesAtom } from '@stores/channel';

View File

@@ -7,7 +7,7 @@ import { messageParser } from '@utils/parser';
import { memo } from 'react';
const ChannelMessageItem = ({ data }: { data: any }) => {
export const ChannelMessageItem = memo(function ChannelMessageItem({ data }: { data: any }) {
const content = messageParser(data.content);
return (
@@ -31,6 +31,4 @@ const ChannelMessageItem = ({ data }: { data: any }) => {
</div>
</div>
);
};
export default memo(ChannelMessageItem);
});