|
@ -46,7 +46,7 @@ const Navbar = (props: NavbarProps) => { |
|
|
{ title: '繁體中文', key: 'hk' }, |
|
|
{ title: '繁體中文', key: 'hk' }, |
|
|
], []) |
|
|
], []) |
|
|
|
|
|
|
|
|
const [currentLang, setCurrentLang] = useState(2) |
|
|
|
|
|
|
|
|
const [currentLang, setCurrentLang] = useState(0) |
|
|
|
|
|
|
|
|
const setLang = (index: number) => { |
|
|
const setLang = (index: number) => { |
|
|
const key = langs[index].key |
|
|
const key = langs[index].key |
|
|