|
|
@@ -2,8 +2,8 @@ import axios from 'axios' |
|
|
import toCamel from 'camelcase-keys' |
|
|
import toCamel from 'camelcase-keys' |
|
|
import React, { useEffect, useState } from 'react' |
|
|
import React, { useEffect, useState } from 'react' |
|
|
import { Helmet } from 'react-helmet-async' |
|
|
import { Helmet } from 'react-helmet-async' |
|
|
import { Link } from 'react-router-dom' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import PrefetchLink from '@/components/PrefetchLink' |
|
|
import SectionTitle from '@/components/common/SectionTitle' |
|
|
import SectionTitle from '@/components/common/SectionTitle' |
|
|
import MainArea from '@/components/layout/MainArea' |
|
|
import MainArea from '@/components/layout/MainArea' |
|
|
import { API_BASE_URL, SITE_TITLE } from '@/config' |
|
|
import { API_BASE_URL, SITE_TITLE } from '@/config' |
|
|
@@ -78,9 +78,9 @@ export default () => { |
|
|
{results.map (page => ( |
|
|
{results.map (page => ( |
|
|
<tr key={page.id}> |
|
|
<tr key={page.id}> |
|
|
<td className="p-2"> |
|
|
<td className="p-2"> |
|
|
<Link to={`/wiki/${ encodeURIComponent (page.title) }`}> |
|
|
|
|
|
|
|
|
<PrefetchLink to={`/wiki/${ encodeURIComponent (page.title) }`}> |
|
|
{page.title} |
|
|
{page.title} |
|
|
</Link> |
|
|
|
|
|
|
|
|
</PrefetchLink> |
|
|
</td> |
|
|
</td> |
|
|
<td className="p-2 text-gray-100 text-sm"> |
|
|
<td className="p-2 text-gray-100 text-sm"> |
|
|
{page.updatedAt} |
|
|
{page.updatedAt} |
|
|
|