Skip to content

Commit

Permalink
hide link for now
Browse files Browse the repository at this point in the history
  • Loading branch information
t3dotgg committed Mar 1, 2023
1 parent 735010e commit d08fb6b
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/app/tweets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,24 @@ type TweetType = {
export const TweetView = (props: { tweet: TweetType }) => {
return (
<div className="border-t border-zinc-700 p-4 shadow-lg">
<Link href={`/post/${props.tweet.id}`}>
<div className="flex items-center">
<img
src={props.tweet.user.profileImageUrl}
alt="Profile"
className="h-14 w-14 rounded-full"
/>
<div className="ml-3 flex flex-col text-2xl">
<div className="text-base font-bold text-slate-300">
<span>{`@${props.tweet.user.username}`}</span>
<span className="font-thin">{` · ${dayjs(
props.tweet.createdAt
).fromNow()}`}</span>
</div>
<div className="text-slate-300">{props.tweet.content}</div>
{/* <Link href={`/post/${props.tweet.id}`}> */}
<div className="flex items-center">
<img
src={props.tweet.user.profileImageUrl}
alt="Profile"
className="h-14 w-14 rounded-full"
/>
<div className="ml-3 flex flex-col text-2xl">
<div className="text-base font-bold text-slate-300">
<span>{`@${props.tweet.user.username}`}</span>
<span className="font-thin">{` · ${dayjs(
props.tweet.createdAt
).fromNow()}`}</span>
</div>
<div className="text-slate-300">{props.tweet.content}</div>
</div>
</Link>
</div>
{/* </Link> */}
</div>
);
};
Expand Down

0 comments on commit d08fb6b

Please sign in to comment.