mirror of
https://github.com/Dokploy/examples
synced 2025-06-26 18:15:52 +00:00
refactor: comment
This commit is contained in:
parent
71ab356168
commit
bec5a45ad9
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user