laptrinhbockchain / pancake-swap-v1-bsc-testnet

Pancake swap v1 on Binance Smart Chain (BSC) Testnet
41 stars 44 forks source link

issue when in set language #4

Closed SkroooB closed 3 years ago

SkroooB commented 3 years ago

`pancake-swap-interface-v1/src/components/Menu/index.tsx TypeScript error in D:/pancakeswap/pan_test/pancake-swap-v1-bsc-testnet/pancake-swap-interface-v1/src/components/Menu/index.tsx(29,7): Type '{ code: string; language: string; }[]' is not assignable to type 'Language[]'. Property 'locale' is missing in type '{ code: string; language: string; }' but required in type 'Language'. TS2322

27 |       toggleTheme={toggleTheme}
28 |       currentLang={selectedLanguage?.code || ''}

29 | langs={allLanguages} | ^ 30 | setLang={setSelectedLanguage} 31 | cakePriceUsd={cakeBusdPrice} 32 | profile={profile}`

laptrinhbockchain commented 3 years ago

You can use other version at here: https://github.com/nhancv/pancake-swap-testnet#readme