Skip to content

Commit

Permalink
Merge pull request #434 from skalenetwork/fix-ui-issues
Browse files Browse the repository at this point in the history
Update metaport dependency, addressChanged handler
  • Loading branch information
dmytrotkk authored Dec 9, 2024
2 parents 3df153a + 7b2aaa7 commit d96492b
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 7 deletions.
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@mdx-js/rollup": "^2.3.0",
"@mui/icons-material": "^5.15.14",
"@mui/material": "^5.15.14",
"@skalenetwork/metaport": "3.1.0-develop.0",
"@skalenetwork/metaport": "3.2.0-develop.0",
"@skalenetwork/skale-contracts-ethers-v6": "1.0.1",
"@transak/transak-sdk": "^3.1.1",
"@types/react-copy-to-clipboard": "^5.0.4",
Expand Down
2 changes: 1 addition & 1 deletion skale-network
Submodule skale-network updated 359 files
2 changes: 1 addition & 1 deletion src/App.scss
Original file line number Diff line number Diff line change
Expand Up @@ -565,8 +565,8 @@ body::-webkit-scrollbar {
}

code {
white-space: pre-wrap;
overflow: hidden;
white-space: nowrap;
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}
Expand Down
4 changes: 2 additions & 2 deletions src/core/ecosystem/categories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const categories: Categories = {
defi: {
name: 'DeFi',
subcategories: {
dex: { name: 'DEX' },
dex: { name: 'DEX' }
}
},
'digital-collectibles': { name: 'Digital Collectibles', subcategories: {} },
Expand Down Expand Up @@ -78,7 +78,7 @@ export const categories: Categories = {
other: { name: 'Other', subcategories: {} },
partner: { name: 'Partner', subcategories: {} },
security: { name: 'Security', subcategories: {} },
'social': { name: 'Social', subcategories: {} },
social: { name: 'Social', subcategories: {} },
tools: { name: 'Tools', subcategories: {} },
wallet: { name: 'Wallet', subcategories: {} },
metaverse: { name: 'Metaverse', subcategories: {} },
Expand Down
12 changes: 10 additions & 2 deletions src/pages/Bridge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ import {
SkPaper,
type interfaces,
TransactionData,
styles
styles,
useWagmiAccount
} from '@skalenetwork/metaport'
import { type types } from '@/core'

Expand Down Expand Up @@ -77,9 +78,12 @@ export default function Bridge(props: { isXs: boolean; chainsMeta: types.ChainsM
token,
tokens,
setToken,
transactionsHistory
transactionsHistory,
addressChanged
} = useMetaportStore((state) => state)

const { address } = useWagmiAccount()

function validChainName(chainName: string | null): boolean {
if (!chainName) return false
return mpc.config.chains.includes(chainName)
Expand Down Expand Up @@ -112,6 +116,10 @@ export default function Bridge(props: { isXs: boolean; chainsMeta: types.ChainsM
updateSearchParams()
}, [chainName1, chainName2, appName1, appName2, token])

useEffect(() => {
addressChanged()
}, [address])

useEffect(() => {
if (chainName1 && chainName2 && token) return
const from = searchParams.get('from')
Expand Down

0 comments on commit d96492b

Please sign in to comment.