mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
refactor(block-menu): remove commented-out code for recent searches in SuggestionContent to improve code clarity
This commit is contained in:
@@ -55,50 +55,6 @@ export const SuggestionContent = () => {
|
||||
return (
|
||||
<div className={scrollbarStyles}>
|
||||
<div className="w-full space-y-6 pb-4">
|
||||
{/* Recent Searches */}
|
||||
{/* <div className="-mb-2 space-y-2.5">
|
||||
<p className="px-4 font-sans text-sm font-medium leading-[1.375rem] text-zinc-800">
|
||||
Recent searches
|
||||
</p>
|
||||
<div className="scrollbar-thumb-rounded flex flex-nowrap gap-2 overflow-x-auto transition-all duration-200 scrollbar-thin scrollbar-track-transparent scrollbar-thumb-transparent hover:scrollbar-thumb-zinc-200">
|
||||
{" "}
|
||||
{!loading && suggestionsData
|
||||
? suggestionsData.recent_searches.map((search, index) => (
|
||||
<SearchHistoryChip
|
||||
key={`search-${index}`}
|
||||
content={search}
|
||||
className={index === 0 ? "ml-4" : ""}
|
||||
onClick={() => setSearchQuery(search)}
|
||||
/>
|
||||
))
|
||||
: Array(3)
|
||||
.fill(0)
|
||||
.map((_, index) => (
|
||||
<SearchHistoryChip.Skeleton
|
||||
key={`search-${index}`}
|
||||
className={index === 0 ? "ml-4" : ""}
|
||||
/>
|
||||
))}
|
||||
{!loading && suggestionsData
|
||||
? suggestionsData.recent_searches.map((search, index) => (
|
||||
<SearchHistoryChip
|
||||
key={`search-${index}`}
|
||||
content={search}
|
||||
className={index === 0 ? "ml-4" : ""}
|
||||
onClick={() => setSearchQuery(search)}
|
||||
/>
|
||||
))
|
||||
: Array(3)
|
||||
.fill(0)
|
||||
.map((_, index) => (
|
||||
<SearchHistoryChip.Skeleton
|
||||
key={`search-${index}`}
|
||||
className={index === 0 ? "ml-4" : ""}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
</div> */}
|
||||
|
||||
{/* Integrations */}
|
||||
<div className="space-y-2.5 px-4">
|
||||
<p className="font-sans text-sm font-medium leading-[1.375rem] text-zinc-800">
|
||||
|
||||
Reference in New Issue
Block a user