refactor: comment

This commit is contained in:
Mauricio Siu 2024-07-13 00:03:02 -06:00
parent 71ab356168
commit bec5a45ad9

View File

@ -5,7 +5,7 @@ import { useState } from "react";
import { api } from "@/trpc/react";
export function LatestPost() {
const [latestPost] = api.post.getLatest.useSuspenseQuery();
// const { data: latestPost } = api.post.getLatest.useQuery();
const utils = api.useUtils();
const [name, setName] = useState("");
@ -18,11 +18,11 @@ export function LatestPost() {
return (
<div className="w-full max-w-xs">
{latestPost ? (
{/* {latestPost ? (
<p className="truncate">Your most recent post: {latestPost.name}</p>
) : (
<p>You have no posts yet.</p>
)}
)} */}
<form
onSubmit={(e) => {
e.preventDefault();