Skip to content

Commit c2b7e7e

Browse files
committed
Moved home button and made it actually take you to the home page
1 parent f322178 commit c2b7e7e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/components/Browser.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export default function Browser() {
156156
};
157157

158158
const goHome = () => {
159-
handleNavigate("https://duckduckgo.com");
159+
window.location.href = '/';
160160
};
161161

162162
const goBack = () => {
@@ -255,6 +255,9 @@ export default function Browser() {
255255

256256
<div className="flex items-center justify-between gap-3 border-b border-border/50 bg-background-secondary px-3 py-2 backdrop-blur-xl">
257257
<div className="flex items-center gap-1">
258+
<button type="button" className={iconButtonClass} onClick={goHome} aria-label="Home">
259+
<Home className="h-4 w-4" />
260+
</button>
258261
<button type="button" className={iconButtonClass} onClick={goBack} aria-label="Back">
259262
<ChevronLeft className="h-4 w-4" />
260263
</button>
@@ -264,9 +267,6 @@ export default function Browser() {
264267
<button type="button" className={iconButtonClass} onClick={reloadTab} aria-label="Reload">
265268
<RotateCw className="h-4 w-4" />
266269
</button>
267-
<button type="button" className={iconButtonClass} onClick={goHome} aria-label="Home">
268-
<Home className="h-4 w-4" />
269-
</button>
270270
</div>
271271

272272
<div className="flex-1">

0 commit comments

Comments
 (0)