mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
增加无结果提示
This commit is contained in:
@@ -205,6 +205,16 @@ export default function AlgoliaSearchModal({ cRef }) {
|
||||
<div className="mb-4">
|
||||
<TagGroups />
|
||||
</div>
|
||||
{
|
||||
searchResults.length === 0 && keyword && (
|
||||
<div>
|
||||
<p className=" text-slate-600 text-center my-4 text-base"> 无法找到相关结果
|
||||
<span
|
||||
className='font-semibold'
|
||||
>"{keyword}"</span></p>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
<ul>
|
||||
{searchResults.map((result, index) => (
|
||||
<li key={result.objectID}
|
||||
|
||||
Reference in New Issue
Block a user