Skip to content

Commit

Permalink
feat: update LanguageSwitcher with LanguageIcon
Browse files Browse the repository at this point in the history
  • Loading branch information
hamster1963 committed Jan 25, 2025
1 parent 9f6fa51 commit 527bf45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/LanguageSwitcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
import { localeItems } from "@/i18n-metadata"
import { setUserLocale } from "@/i18n/locale"
import { cn } from "@/lib/utils"
import { CheckCircleIcon } from "@heroicons/react/20/solid"
import { CheckCircleIcon, LanguageIcon } from "@heroicons/react/20/solid"
import { useLocale } from "next-intl"

export function LanguageSwitcher() {
Expand All @@ -29,7 +29,7 @@ export function LanguageSwitcher() {
size="sm"
className="rounded-full px-[9px] bg-white dark:bg-black cursor-pointer hover:bg-accent/50 dark:hover:bg-accent/50"
>
{localeItems.find((item) => item.code === locale)?.name}
<LanguageIcon className="size-4" />
<span className="sr-only">Change language</span>
</Button>
</DropdownMenuTrigger>
Expand Down

0 comments on commit 527bf45

Please sign in to comment.