Skip to content

Commit

Permalink
resolve #79
Browse files Browse the repository at this point in the history
I added the message with the link that redirects to the issue page
  • Loading branch information
leidorf committed Aug 1, 2024
1 parent 6e77d34 commit d675190
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/Search.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { usePathname, useRouter, useSearchParams } from 'next/navigation'
import { createAutocomplete } from '@algolia/autocomplete-core'
import { Dialog } from '@headlessui/react'
import clsx from 'clsx'
import Link from 'next/link'

import { navigation } from '@/lib/navigation'

Expand Down Expand Up @@ -178,11 +179,14 @@ function SearchResults({ autocomplete, query, collection }) {
if (collection.items.length === 0) {
return (
<p className="px-4 py-8 text-center text-sm text-slate-700 dark:text-slate-400">
No results for &ldquo;
Couldn't find what you are looking for?&nbsp;
<Link href="https://github.com/gofr-dev/gofr/issues" target="_blank" className='underline'>
Create an Issue on GitHub for &ldquo;
<span className="break-words text-slate-900 dark:text-white">
{query}
</span>
&rdquo;
</Link>
</p>
)
}
Expand Down

0 comments on commit d675190

Please sign in to comment.