Skip to content

Commit

Permalink
test: update
Browse files Browse the repository at this point in the history
  • Loading branch information
twosugar committed Nov 6, 2023
1 parent 2f79817 commit 4609a77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/locale-link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useTranslation } from 'next-i18next'
import { useEffect, useState } from 'react'

// @ts-ignore
export const LocaleLink = (props: LinkProps & { pageUrl?: string }) => {
export const LocaleLink = (props: { to?: string; children?: any; pageUrl?: string; [key: string]: any }) => {
const { to, children, pageUrl, ...other } = props
const { i18n } = useTranslation('common')
const localePrefix = i18n.language === 'zh-HK' ? '' : `/${i18n.language}`
Expand Down

0 comments on commit 4609a77

Please sign in to comment.