boring stuff

This commit is contained in:
m5r
2021-08-01 11:05:40 +08:00
parent cd83f0c78e
commit a65d6e2bcc
17 changed files with 261 additions and 206 deletions

View File

@ -1,4 +1,4 @@
import { Link, useQuery } from "blitz";
import { Link, useQuery, Routes } from "blitz";
import getConversationsQuery from "../queries/get-conversations";
@ -15,7 +15,11 @@ export default function ConversationsList() {
const lastMessage = messages[messages.length - 1]!;
return (
<li key={recipient} className="py-2">
<Link href={`/messages/${encodeURIComponent(recipient)}`}>
<Link
href={Routes.ConversationPage({
recipient: encodeURIComponent(recipient),
})}
>
<a className="flex flex-col">
<div className="flex flex-row justify-between">
<strong>{recipient}</strong>