+
{children}
)
diff --git a/frontend/src/pages/posts/PostDetailPage.tsx b/frontend/src/pages/posts/PostDetailPage.tsx
index 501a77a..e3efca5 100644
--- a/frontend/src/pages/posts/PostDetailPage.tsx
+++ b/frontend/src/pages/posts/PostDetailPage.tsx
@@ -24,8 +24,8 @@ type Props = { user: User | null }
export default ({ user }: Props) => {
const { id } = useParams ()
- const [post, setPost] = useState
(null)
const [editing, setEditing] = useState (true)
+ const [post, setPost] = useState (null)
const [status, setStatus] = useState (200)
const changeViewedFlg = async () => {
@@ -92,13 +92,15 @@ export default ({ user }: Props) => {
: 'bg-gray-500 hover:bg-gray-600')
return (
- <>
+
{(post?.thumbnail || post?.thumbnailBase) && (
)}
{post && {`${ post.title || post.url } | ${ SITE_TITLE }`}}
-
+
+
+
{post
? (
@@ -126,5 +128,8 @@ export default ({ user }: Props) => {
>)
: 'Loading...'}
- >)
+
+
+
+
)
}
diff --git a/frontend/src/pages/posts/PostListPage.tsx b/frontend/src/pages/posts/PostListPage.tsx
index 84d16e9..79a826f 100644
--- a/frontend/src/pages/posts/PostListPage.tsx
+++ b/frontend/src/pages/posts/PostListPage.tsx
@@ -77,7 +77,7 @@ export default () => {
}, [location.search])
return (
- <>
+
{tags.length
@@ -85,13 +85,15 @@ export default () => {
: `${ SITE_TITLE } 〜 ぼざろクリーチャーシリーズ綜合リンク集サイト`}
-
+
+
+
{posts.length
? (
-
+
{posts.map (post => (
{
)}
- >)
+
+
+
+
)
}