+ {/* タイトル */}
+
+
+
+
+
setTitle (e.target.value)} />
+
+
+ {/* タグ */}
+
+
+
+
+
+ {/* 送信 */}
+
+
)
+}
diff --git a/frontend/src/components/TagDetailSidebar.tsx b/frontend/src/components/TagDetailSidebar.tsx
index 077f58c..5cea00d 100644
--- a/frontend/src/components/TagDetailSidebar.tsx
+++ b/frontend/src/components/TagDetailSidebar.tsx
@@ -24,7 +24,7 @@ export default ({ post }: Props) => {
if (!(post))
return
- const fetchTags = async () => {
+ const fetchTags = () => {
const tagsTmp: TagByCategory = { }
for (const tag of post.tags)
{
diff --git a/frontend/src/pages/PostDetailPage.tsx b/frontend/src/pages/PostDetailPage.tsx
index 394c7f0..7e87b90 100644
--- a/frontend/src/pages/PostDetailPage.tsx
+++ b/frontend/src/pages/PostDetailPage.tsx
@@ -8,17 +8,21 @@ import { toast } from '@/components/ui/use-toast'
import { cn } from '@/lib/utils'
import MainArea from '@/components/layout/MainArea'
import TagDetailSidebar from '@/components/TagDetailSidebar'
+import PostEditForm from '@/components/PostEditForm'
-import type { Post, Tag } from '@/types'
+import type { Post, Tag, User } from '@/types'
+type Props = { user: User }
-const PostDetailPage = () => {
- const { id } = useParams ()
- const [post, setPost] = useState