このコミットが含まれているのは:
@@ -1,3 +1,5 @@
|
||||
import type { FC } from 'react'
|
||||
|
||||
import { useEffect, useState } from 'react'
|
||||
import { Helmet } from 'react-helmet-async'
|
||||
import { useLocation } from 'react-router-dom'
|
||||
@@ -12,7 +14,7 @@ import { dateString } from '@/lib/utils'
|
||||
import type { WikiPageChange } from '@/types'
|
||||
|
||||
|
||||
export default () => {
|
||||
const WikiHistoryPage: FC = () => {
|
||||
const [changes, setChanges] = useState<WikiPageChange[]> ([])
|
||||
|
||||
const location = useLocation ()
|
||||
@@ -23,7 +25,7 @@ export default () => {
|
||||
void (async () => {
|
||||
setChanges (await apiGet<WikiPageChange[]> ('/wiki/changes', { params: id ? { id } : { } }))
|
||||
}) ()
|
||||
}, [location.search])
|
||||
}, [id, location.search])
|
||||
|
||||
return (
|
||||
<MainArea>
|
||||
@@ -73,3 +75,5 @@ export default () => {
|
||||
</table>
|
||||
</MainArea>)
|
||||
}
|
||||
|
||||
export default WikiHistoryPage
|
||||
|
||||
新しい課題から参照
ユーザをブロックする