Skip to content

Commit

Permalink
Homepage: switch js navigation to href links
Browse files Browse the repository at this point in the history
  • Loading branch information
igalst committed Feb 12, 2024
1 parent ed06b41 commit 448fa85
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions workspaces/website/src/blocks/HomepageHero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ type Props = {
};
};
import { Intro } from "./Intro";
import { navigate } from "vite-plugin-ssr/client/router";

export const HomepageHero = ({ seo }: Props) => {
return (
Expand Down Expand Up @@ -117,7 +116,7 @@ export const HomepageHero = ({ seo }: Props) => {
zIndex={4}
>
<Button
onClick={() => navigate("/en/developers")}
href="/en/developers"
size="lg"
minW="210px"
variant="primaryHero"
Expand All @@ -127,7 +126,7 @@ export const HomepageHero = ({ seo }: Props) => {
<Button
size="lg"
variant="secondaryHero"
onClick={() => navigate("/en/what-is-starknet")}
href="/en/what-is-starknet"
>
Explore Starknet
</Button>
Expand Down

0 comments on commit 448fa85

Please sign in to comment.