mirror of
https://github.com/wahyd4/hey-search.git
synced 2026-08-08 21:05:14 +10:00
update
This commit is contained in:
@@ -268,6 +268,7 @@ function App() {
|
||||
errors={response.errors}
|
||||
page={page}
|
||||
totalResults={response.results.length}
|
||||
initialCollapsed
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
|
||||
@@ -8,10 +8,11 @@ interface SearchStatsProps {
|
||||
errors: EngineError[];
|
||||
page: number;
|
||||
totalResults: number;
|
||||
initialCollapsed?: boolean;
|
||||
}
|
||||
|
||||
export function SearchStats({ stats, page, totalResults }: SearchStatsProps) {
|
||||
const [collapsed, setCollapsed] = useState(false);
|
||||
export function SearchStats({ stats, page, totalResults, initialCollapsed = false }: SearchStatsProps) {
|
||||
const [collapsed, setCollapsed] = useState(initialCollapsed);
|
||||
|
||||
if (stats.length === 0) return null;
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ export function WebResults({ results }: WebResultsProps) {
|
||||
href={result.url}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="mt-1 block text-lg font-medium text-blue-600 hover:underline dark:text-blue-400 sm:text-xl"
|
||||
className="mt-1 block text-lg font-medium text-blue-600 visited:text-purple-600 hover:underline dark:text-blue-400 dark:visited:text-purple-400 sm:text-xl"
|
||||
>
|
||||
{result.title}
|
||||
<ExternalLink className="mb-1 ml-1 inline h-3.5 w-3.5 opacity-0 group-hover:opacity-100" />
|
||||
|
||||
Reference in New Issue
Block a user