Modify i18n button position
This commit is contained in:
@@ -22,12 +22,13 @@ const Honkai3rdNavigator = () => {
|
||||
</NextLink>
|
||||
</Heading>
|
||||
</Flex>
|
||||
<Flex sx={{ justifyContent: 'space-between', flex: 1 }}>
|
||||
<Flex sx={{ height: 40, alignItems: 'center' }}>
|
||||
<NextLink href='/honkai3rd/versions' passHref>
|
||||
<NavLink mr={3} sx={{ fontFamily: 'monospace' }}>
|
||||
{t('nav.versions')}
|
||||
</NavLink>
|
||||
</NextLink>
|
||||
<Flex sx={{ height: 40, alignItems: 'center' }}>
|
||||
<NextLink href='/honkai3rd/battlesuits' passHref>
|
||||
<NavLink mr={3} sx={{ fontFamily: 'monospace' }}>
|
||||
{t('nav.battlesuits')}
|
||||
@@ -48,16 +49,27 @@ const Honkai3rdNavigator = () => {
|
||||
{t('nav.elfs')}
|
||||
</NavLink>
|
||||
</NextLink>
|
||||
</Flex>
|
||||
<Flex sx={{ height: 40, alignItems: 'center' }}>
|
||||
<NextLink
|
||||
href={{ pathname, query }}
|
||||
locale={locale === 'en-US' ? 'ko-KR' : 'en-US'}
|
||||
as={asPath}
|
||||
passHref
|
||||
>
|
||||
<NavLink>{locale === 'en-US' ? '🇺🇸' : '🇰🇷'}</NavLink>
|
||||
<NavLink>
|
||||
{locale === 'en-US' ? (
|
||||
'🇺🇸'
|
||||
) : (
|
||||
<>
|
||||
🇰🇷 <small>(한글화 작업 중)</small>
|
||||
</>
|
||||
)}
|
||||
</NavLink>
|
||||
</NextLink>
|
||||
</Flex>
|
||||
</Flex>
|
||||
</Flex>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user