diff --git a/frontend/src/pages/posts/PostHistoryPage.tsx b/frontend/src/pages/posts/PostHistoryPage.tsx index 0b09fe7..3fd444e 100644 --- a/frontend/src/pages/posts/PostHistoryPage.tsx +++ b/frontend/src/pages/posts/PostHistoryPage.tsx @@ -10,6 +10,7 @@ import MainArea from '@/components/layout/MainArea' import { SITE_TITLE } from '@/config' import { fetchPostChanges } from '@/lib/posts' import { postsKeys } from '@/lib/queryKeys' +import { cn } from '@/lib/utils' import type { FC } from 'react' @@ -44,7 +45,7 @@ export default (() => { {loading ? 'Loading...' : ( <> - + @@ -64,9 +65,12 @@ export default (() => { ++rowsCnt } return ( - + {withPost && ( - )} - -
投稿 変更
+ {change.post.title { className="w-40"/> + {`を${ change.changeType === 'add' ? '記載' : '消除' }`} + {change.user ? ( {change.user.name} diff --git a/frontend/src/pages/tags/NicoTagListPage.tsx b/frontend/src/pages/tags/NicoTagListPage.tsx index 08e485b..ed75dcb 100644 --- a/frontend/src/pages/tags/NicoTagListPage.tsx +++ b/frontend/src/pages/tags/NicoTagListPage.tsx @@ -2,7 +2,7 @@ import { useEffect, useRef, useState } from 'react' import { Helmet } from 'react-helmet-async' import TagLink from '@/components/TagLink' -import SectionTitle from '@/components/common/SectionTitle' +import PageTitle from '@/components/common/PageTitle' import TextArea from '@/components/common/TextArea' import MainArea from '@/components/layout/MainArea' import { toast } from '@/components/ui/use-toast' @@ -92,13 +92,13 @@ export default ({ user }: Props) => {
- ニコニコ連携 + ニコニコ連携
{nicoTags.length > 0 && ( - + @@ -107,7 +107,7 @@ export default ({ user }: Props) => { {nicoTags.map ((tag, i) => ( - + @@ -125,7 +125,7 @@ export default ({ user }: Props) => { ))} {memberFlg && ( -
ニコニコタグ 連携タグ
+ { ev.preventDefault () handleEdit (tag.id) diff --git a/frontend/src/pages/wiki/WikiHistoryPage.tsx b/frontend/src/pages/wiki/WikiHistoryPage.tsx index 427217c..1ed278a 100644 --- a/frontend/src/pages/wiki/WikiHistoryPage.tsx +++ b/frontend/src/pages/wiki/WikiHistoryPage.tsx @@ -3,6 +3,7 @@ import { Helmet } from 'react-helmet-async' import { useLocation } from 'react-router-dom' import PrefetchLink from '@/components/PrefetchLink' +import PageTitle from '@/components/common/PageTitle' import MainArea from '@/components/layout/MainArea' import { SITE_TITLE } from '@/config' import { apiGet } from '@/lib/api' @@ -28,8 +29,11 @@ export default () => { {`Wiki 変更履歴 | ${ SITE_TITLE }`} + + Wiki 履歴 + - + @@ -39,8 +43,8 @@ export default () => { {changes.map (change => ( - - +
タイトル
+
{change.pred != null && ( diff --git a/frontend/src/pages/wiki/WikiSearchPage.tsx b/frontend/src/pages/wiki/WikiSearchPage.tsx index 03c9d5b..bc3e3e7 100644 --- a/frontend/src/pages/wiki/WikiSearchPage.tsx +++ b/frontend/src/pages/wiki/WikiSearchPage.tsx @@ -2,7 +2,7 @@ import { useEffect, useState } from 'react' import { Helmet } from 'react-helmet-async' import PrefetchLink from '@/components/PrefetchLink' -import SectionTitle from '@/components/common/SectionTitle' +import PageTitle from '@/components/common/PageTitle' import MainArea from '@/components/layout/MainArea' import { SITE_TITLE } from '@/config' import { apiGet } from '@/lib/api' @@ -35,8 +35,9 @@ export default () => { Wiki | {SITE_TITLE} +
- Wiki + Wiki
{/* タイトル */}
@@ -68,7 +69,7 @@ export default () => {
- + @@ -76,13 +77,13 @@ export default () => { {results.map (page => ( - + - ))}
タイトル 最終更新
{page.title} + {page.updatedAt}