Skip to content

Commit

Permalink
build: Bump uikit to 0.2.5 (WalletConnect#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
RabbitDoge authored Nov 12, 2020
1 parent 83b39b5 commit 0eceda2
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"dependencies": {
"@crowdin/crowdin-api-client": "^1.8.16",
"@ethersproject/abi": "^5.0.7",
"@pancakeswap-libs/uikit": "^0.2.1",
"@pancakeswap-libs/uikit": "^0.2.5",
"@types/react": "^16.9.46",
"@types/react-dom": "^16.9.8",
"@types/react-router-dom": "^5.1.5",
Expand Down
3 changes: 3 additions & 0 deletions src/components/Menu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { useWallet } from 'use-wallet'
import { allLanguages } from 'constants/localisation/languageCodes'
import { LanguageContext } from 'contexts/Localisation/languageContext'
import useTheme from 'hooks/useTheme'
import { useCakePrice } from 'hooks/useTokenBalance'

interface ConnectCallbackType {
key: 'metamask' | 'trustwallet' | 'mathwallet' | 'tokenpocket' | 'walletconnect'
Expand All @@ -14,6 +15,7 @@ const Menu = () => {
const { account, connect, reset } = useWallet()
const { selectedLanguage, setSelectedLanguage } = useContext(LanguageContext)
const { isDark, toggleTheme } = useTheme()
const cakePriceUsd = useCakePrice()

const login = useCallback(
(connectorId) => {
Expand Down Expand Up @@ -64,6 +66,7 @@ const Menu = () => {
currentLang={selectedLanguage && selectedLanguage.code}
langs={allLanguages}
setLang={setSelectedLanguage}
cakePriceUsd={cakePriceUsd}
/>
)
}
Expand Down
2 changes: 1 addition & 1 deletion src/style/Global.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createGlobalStyle } from 'styled-components'
import { PancakeTheme } from '@pancakeswap-libs/uikit/dist/theme/types'
import { PancakeTheme } from '@pancakeswap-libs/uikit/dist/theme'

declare module 'styled-components' {
/* eslint-disable @typescript-eslint/no-empty-interface */
Expand Down
16 changes: 12 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1693,12 +1693,13 @@
dependencies:
mkdirp "^1.0.4"

"@pancakeswap-libs/uikit@^0.2.1":
version "0.2.2"
resolved "https://registry.yarnpkg.com/@pancakeswap-libs/uikit/-/uikit-0.2.2.tgz#1af5729cfe137d0a7416b09fb04b4a724b593877"
integrity sha512-iMV8neqESBlkLmFz09U1jrJxlvuJncd0e4jEYD4RK8LfRUczNnv6FURlJrC8pSaYKNS3lb0Khcn01UzII79Rdw==
"@pancakeswap-libs/uikit@^0.2.5":
version "0.2.5"
resolved "https://registry.yarnpkg.com/@pancakeswap-libs/uikit/-/uikit-0.2.5.tgz#0802a1cc6c6cd2facad3987145c717b28bba9b36"
integrity sha512-ev5AhbdYa/TN/R4sNwT8Hq9oQIZBLWO567acQQyfWHQgxLxW10P+g/kYNsMCVMnrA9S30dPQPE/oUNL+rcAMxQ==
dependencies:
"@types/lodash" "^4.14.162"
"@types/styled-system" "^5.1.10"
lodash "^4.17.20"
styled-system "^5.1.5"

Expand Down Expand Up @@ -2328,6 +2329,13 @@
"@types/react-native" "*"
csstype "^3.0.2"

"@types/styled-system@^5.1.10":
version "5.1.10"
resolved "https://registry.yarnpkg.com/@types/styled-system/-/styled-system-5.1.10.tgz#dcf5690dd837ca49b8de1f23cb99d510c7f4ecb3"
integrity sha512-OmVjC9OzyUckAgdavJBc+t5oCJrNXTlzWl9vo2x47leqpX1REq2qJC49SEtzbu1OnWSzcD68Uq3Aj8TeX+Kvtg==
dependencies:
csstype "^3.0.2"

"@types/tapable@*", "@types/tapable@^1.0.5":
version "1.0.6"
resolved "https://registry.yarnpkg.com/@types/tapable/-/tapable-1.0.6.tgz#a9ca4b70a18b270ccb2bc0aaafefd1d486b7ea74"
Expand Down

0 comments on commit 0eceda2

Please sign in to comment.