chore: only show search link when has res

pull/22091/head
Joel 11 months ago
parent 29deab509c
commit a1afe1c514

@ -109,6 +109,7 @@ const List = forwardRef<ListRef, ListProps>(({
onAction={noop} onAction={noop}
/> />
))} ))}
{list.length > 0 && (
<div className='mb-3 mt-2 flex items-center justify-center space-x-2'> <div className='mb-3 mt-2 flex items-center justify-center space-x-2'>
<div className="h-[2px] w-[90px] bg-gradient-to-l from-[rgba(16,24,40,0.08)] to-[rgba(255,255,255,0.01)]"></div> <div className="h-[2px] w-[90px] bg-gradient-to-l from-[rgba(16,24,40,0.08)] to-[rgba(255,255,255,0.01)]"></div>
<Link <Link
@ -121,6 +122,7 @@ const List = forwardRef<ListRef, ListProps>(({
</Link> </Link>
<div className="h-[2px] w-[90px] bg-gradient-to-l from-[rgba(255,255,255,0.01)] to-[rgba(16,24,40,0.08)]"></div> <div className="h-[2px] w-[90px] bg-gradient-to-l from-[rgba(255,255,255,0.01)] to-[rgba(16,24,40,0.08)]"></div>
</div> </div>
)}
</div> </div>
</> </>
) )

Loading…
Cancel
Save