このコミットが含まれているのは:
@@ -4,6 +4,7 @@ import { useEffect, useState } from 'react'
|
||||
import { Helmet } from 'react-helmet-async'
|
||||
import { useLocation, useParams } from 'react-router-dom'
|
||||
|
||||
import { useLocale } from '@/lib/useLocale'
|
||||
import PageTitle from '@/components/common/PageTitle'
|
||||
import MainArea from '@/components/layout/MainArea'
|
||||
import { SITE_TITLE } from '@/config'
|
||||
@@ -14,6 +15,7 @@ import type { WikiPageDiff } from '@/types'
|
||||
|
||||
|
||||
const WikiDiffPage: FC = () => {
|
||||
const locale = useLocale ()
|
||||
const { id } = useParams ()
|
||||
|
||||
const location = useLocation ()
|
||||
@@ -29,9 +31,9 @@ const WikiDiffPage: FC = () => {
|
||||
|
||||
useEffect (() => {
|
||||
void (async () => {
|
||||
setDiff (await apiGet<WikiPageDiff> (`/wiki/${ id }/diff`, { params: { from, to } }))
|
||||
setDiff (await apiGet<WikiPageDiff> (`/wiki/${ id }/diff`, { locale, params: { from, to } }))
|
||||
}) ()
|
||||
}, [from, id, to])
|
||||
}, [from, id, to, locale])
|
||||
|
||||
return (
|
||||
<MainArea>
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする