Skip to content

Commit

Permalink
refactor: add posts
Browse files Browse the repository at this point in the history
  • Loading branch information
Siumauricio committed Jul 13, 2024
1 parent bec5a45 commit dd911a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions t3/src/app/_components/post.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useState } from "react";
import { api } from "@/trpc/react";

export function LatestPost() {
// const { data: latestPost } = api.post.getLatest.useQuery();
const { data: latestPost } = api.post.getLatest.useQuery();

const utils = api.useUtils();
const [name, setName] = useState("");
Expand All @@ -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();
Expand Down

0 comments on commit dd911a7

Please sign in to comment.