added new chat modal

This commit is contained in:
Ren Amamiya
2023-04-07 14:13:40 +07:00
parent 8db5d5f87d
commit 38b34f5c04
7 changed files with 126 additions and 11 deletions

View File

@@ -1,4 +1,5 @@
import { ChatListItem } from '@components/chats/chatListItem';
import { ChatModal } from '@components/chats/chatModal';
import { ImageWithFallback } from '@components/imageWithFallback';
import { RelayContext } from '@components/relaysProvider';
@@ -19,7 +20,7 @@ export default function ChatList() {
const [list, setList] = useState(new Set());
const openSelfChat = () => {
router.replace({
router.push({
pathname: '/chats/[pubkey]',
query: { pubkey: activeAccount.pubkey },
});
@@ -70,6 +71,7 @@ export default function ChatList() {
{[...list].map((item: string, index) => (
<ChatListItem key={index} pubkey={item} />
))}
<ChatModal />
</div>
);
}