Compare commits
No commits in common. "f9ef90e61fdf6c30519fc54ee5f02b8bbd8b42de" and "addbb820a30b678d74ee2e45ebf10ee784761750" have entirely different histories.
f9ef90e61f
...
addbb820a3
2 changed files with 4 additions and 9 deletions
|
@ -28,7 +28,6 @@ export function Menu(): JSXElement {
|
||||||
<Home />
|
<Home />
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
<MenuItem href="/new">
|
<MenuItem href="/new">
|
||||||
{/*Filter component for popular */}
|
|
||||||
<Plus />
|
<Plus />
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -23,28 +23,24 @@ export function Posts(): JSXElement {
|
||||||
}
|
}
|
||||||
|
|
||||||
// This is the card container for a post
|
// This is the card container for a post
|
||||||
export function PostSegment({ post } : { post: Post }): JSXElement {
|
export function PostSegment(props: { post: Post }): JSXElement {
|
||||||
const nav = useNavigate();
|
const nav = useNavigate();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div class="card compact w-full flex-grow border-b-2 border-b-primary bg-base-200 text-base-content transition-all hover:bg-base-300">
|
<div class="card compact w-full flex-grow border-b-2 border-b-primary bg-base-200 text-base-content transition-all hover:bg-base-300">
|
||||||
<div class="card-body md:mx-6">
|
<div class="card-body md:mx-6">
|
||||||
<h3>
|
|
||||||
{post.createdAt ?? "No Creation Date"}
|
|
||||||
</h3>
|
|
||||||
<p class="break-words text-base-content md:pt-2">
|
<p class="break-words text-base-content md:pt-2">
|
||||||
{post.content}
|
{props.post?.content}
|
||||||
</p>
|
</p>
|
||||||
<div class="card-actions justify-between">
|
<div class="card-actions justify-between">
|
||||||
<button
|
<button
|
||||||
// onClick={(engagement)}
|
// onClick={(engagement)}
|
||||||
class="btn btn-xs hover:border-x-primary"
|
class="btn btn-xs hover:border-x-primary"
|
||||||
aria-label="Show sign of engagement"
|
aria-label="View post"
|
||||||
>
|
>
|
||||||
<EngagementIcon />
|
<EngagementIcon />
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
onClick={(): void => nav("/post/" + post.id)}
|
onClick={(): void => nav("/post/" + props.post?.id)}
|
||||||
class="btn btn-xs"
|
class="btn btn-xs"
|
||||||
aria-label="View post"
|
aria-label="View post"
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in a new issue