Skip to content

fix(sidebar): make the logo link to the home page - #1241

Open
mansoour wants to merge 1 commit into
jamiepine:mainfrom
mansoour:fix/sidebar-logo-home
Open

mansoour wants to merge 1 commit into
jamiepine:mainfrom
mansoour:fix/sidebar-logo-home

Conversation

@mansoour

Copy link
Copy Markdown

What

The Voicebox logo at the top of the sidebar looks clickable but does nothing. This makes it a link to the main (generate) page, the usual behaviour for an app logo.

Change

app/src/components/Sidebar.tsx: the logo's wrapper <div> becomes a router <Link to="/"> with the same spacing, labelled with the existing nav.generate string for screen readers. 3 lines changed.

Testing

  • bunx tsc -p app/tsconfig.json --noEmit passes; biome lint is clean for the file.
  • The same change runs in my local Windows web build.

The Voicebox logo at the top of the sidebar looks clickable but did
nothing. Clicking it now goes to the main (generate) page, which is the
usual behaviour for an app logo.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant