Skip to content

Commit

Permalink
fix: buy button link (#555)
Browse files Browse the repository at this point in the history
  • Loading branch information
ginifizz authored Jul 11, 2024
1 parent 502552c commit 68ca92e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pwa/components/con/common/LangSwitcher.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"use client";
import Link from "components/common/Link";
import { usePathname } from "next/navigation";
import { useState } from "react";
import { Locale, i18n } from "i18n/i18n-config";
Expand Down Expand Up @@ -53,13 +52,13 @@ export default function LangSwitcher({ locale }: LangSwitcherProps) {
{locales
.filter((l) => l !== locale)
.map((newLocale: Locale) => (
<Link
<a
key={locale}
className="z-10 w-full px-2 block"
href={getSwitchLink(newLocale)}
>
{newLocale}
</Link>
</a>
))}
</div>
</div>
Expand Down

0 comments on commit 68ca92e

Please sign in to comment.