このコミットが含まれているのは:
@@ -1,3 +1,5 @@
|
||||
import type { FC } from 'react'
|
||||
|
||||
import { useEffect, useState } from 'react'
|
||||
import { Helmet } from 'react-helmet-async'
|
||||
import { useLocation, useParams } from 'react-router-dom'
|
||||
@@ -11,7 +13,7 @@ import { cn } from '@/lib/utils'
|
||||
import type { WikiPageDiff } from '@/types'
|
||||
|
||||
|
||||
export default () => {
|
||||
const WikiDiffPage: FC = () => {
|
||||
const { id } = useParams ()
|
||||
|
||||
const location = useLocation ()
|
||||
@@ -26,7 +28,7 @@ export default () => {
|
||||
void (async () => {
|
||||
setDiff (await apiGet<WikiPageDiff> (`/wiki/${ id }/diff`, { params: { from, to } }))
|
||||
}) ()
|
||||
}, [])
|
||||
}, [from, id, to])
|
||||
|
||||
return (
|
||||
<MainArea>
|
||||
@@ -46,3 +48,5 @@ export default () => {
|
||||
</div>
|
||||
</MainArea>)
|
||||
}
|
||||
|
||||
export default WikiDiffPage
|
||||
|
||||
新しい課題から参照
ユーザをブロックする