Skip to content

Commit a660de2

Browse files
committed
feat: add a browse words in a temporary spot on recent-searches island
1 parent 5fbcca6 commit a660de2

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/components/islands/recent-searches.jsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { $recentSearches } from "../../lib/stores/search.js";
55
/**
66
* Recent Searches Component - An Island that displays a user's last 5 searches
77
*
8-
* @todo implement a default list instead of `null` when no `$recentSearch` is found
8+
* @todo implement a default list instead of `null` (now browse-word link) when no `$recentSearch` is found
99
* @todo implement loading component to avoid flickering UI
1010
*/
1111
export default function RecentSearches() {
@@ -28,5 +28,11 @@ export default function RecentSearches() {
2828
))}
2929
</ol>
3030
</div>
31-
) : null;
31+
) : (
32+
<div className="ml-2 mt-4 md:mt-6">
33+
<a href="/browse">
34+
Browse Words
35+
</a>
36+
</div>
37+
);
3238
}

0 commit comments

Comments
 (0)