mirror of
https://github.com/uetchy/namae.git
synced 2025-08-20 09:58:13 +09:00
feat: switch app store region based on lang
This commit is contained in:
@@ -6,8 +6,11 @@ import { FaAppStore } from 'react-icons/fa'
|
||||
import { Card, Result } from '../Cards'
|
||||
|
||||
function Search({ query }) {
|
||||
const { t } = useTranslation()
|
||||
const term = encodeURIComponent(query)
|
||||
const response = useFetch(`/availability/appstore/${term}`)
|
||||
const response = useFetch(
|
||||
`/availability/appstore/${term}?country=${t('countryCode')}`
|
||||
)
|
||||
const apps = response.result
|
||||
|
||||
return (
|
||||
|
Reference in New Issue
Block a user