diff --git a/src/app/blog/post/[slug]/PostDisplay.tsx b/src/app/blog/post/[slug]/PostDisplay.tsx index 6724506..0c216ad 100644 --- a/src/app/blog/post/[slug]/PostDisplay.tsx +++ b/src/app/blog/post/[slug]/PostDisplay.tsx @@ -146,13 +146,34 @@ export default function PostDisplay({
+ {loggedIn ? ( +
{ + e.currentTarget.style.backgroundColor = "#c88"; + }} + onMouseOut={(e) => { + e.currentTarget.style.backgroundColor = "#a66"; + }} + onClick={() => router.push(`/blog/write/${post.slug}`)} + > + edit +
+ ) : ( +
+ )} { e.currentTarget.style.backgroundColor = "#eee";