fix: recent search link

This commit is contained in:
wonderlandpark 2021-03-26 10:03:57 +09:00
parent 43a20244f6
commit 0ec515b8d3

View File

@ -148,7 +148,7 @@ const Search = (): JSX.Element => {
</li> </li>
{ {
recentSearch.slice(0, 10).map((el, n) => ( recentSearch.slice(0, 10).map((el, n) => (
<Link key={n} href={`/search?q=${encodeURIComponent(el)}`}> <Link key={n} href={`/search?q=${encodeURIComponent(el?.value)}`}>
<li className='h-15 px-3 py-2 cursor-pointer'> <li className='h-15 px-3 py-2 cursor-pointer'>
<i className='fas fa-history' /> {el?.value} <i className='fas fa-history' /> {el?.value}
<span className='absolute right-0 pr-10 text-gray-400 text-sm'> <span className='absolute right-0 pr-10 text-gray-400 text-sm'>