Skip to content

Commit

Permalink
Enable trade chart
Browse files Browse the repository at this point in the history
  • Loading branch information
nohaapav committed Mar 13, 2024
1 parent 6c81587 commit 75379a6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
"@emotion/react": "^11.10.4",
"@emotion/styled": "^11.10.4",
"@galacticcouncil/api-augment": "^0.0.3",
"@galacticcouncil/apps": "3.3.0",
"@galacticcouncil/apps": "3.3.2",
"@galacticcouncil/math-lbp": "^0.1.3",
"@galacticcouncil/math-liquidity-mining": "^0.1.3",
"@galacticcouncil/math-xyk": "^0.1.3",
"@galacticcouncil/sdk": "^1.1.11",
"@galacticcouncil/ui": "^3.0.4",
"@galacticcouncil/ui": "^3.1.2",
"@galacticcouncil/xcm-cfg": "^1.10.4",
"@galacticcouncil/xcm-sdk": "^2.3.1",
"@lit-labs/react": "^1.1.0",
Expand Down
7 changes: 5 additions & 2 deletions src/sections/trade/TradePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ export function TradePage() {
const preference = useProviderRpcUrlStore()
const rpcUrl = preference.rpcUrl ?? import.meta.env.VITE_PROVIDER_URL

const ref = React.useRef<Apps.TradeApp>(null)
const rawSearch = useSearch<SearchGenerics>()
const usdAssetId = import.meta.env.VITE_USD_PEGGED_ASSET_ID
const search = TradeAppSearch.safeParse(rawSearch)
Expand Down Expand Up @@ -88,7 +87,11 @@ export function TradePage() {
<Page>
<SContainer>
<TradeApp
ref={ref}
ref={(r) => {
if (r) {
r.setAttribute("chart", "")
}
}}
onTxNew={(e) => handleSubmit(e)}
ecosystem={Ecosystem.Kusama}
accountName={account?.name}
Expand Down
16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1540,10 +1540,10 @@
resolved "https://registry.yarnpkg.com/@galacticcouncil/api-augment/-/api-augment-0.0.3.tgz#b787c779ccd1455efb219d67bae43822a89396e4"
integrity sha512-evxZy6ipHr3Y7B/V+aCSh4sJmG773qy1fDnIHIhk0uIhSB1pe7Fp0+Bpgu9T3xOPbMIuOdOV6aHEwQeZ5Xt5mg==

"@galacticcouncil/apps@3.3.0":
version "3.3.0"
resolved "https://registry.yarnpkg.com/@galacticcouncil/apps/-/apps-3.3.0.tgz#07af0b46aee94a09cf03e448fa39ddc919483465"
integrity sha512-vVY1Qvf/3fFq55dfIaepoSgioRQZQMECvf4JSgt1DPeT685dPnLWT2dFxQ15iBD3zF+0MKm/SiueFqX0AcpfzA==
"@galacticcouncil/apps@3.3.2":
version "3.3.2"
resolved "https://registry.yarnpkg.com/@galacticcouncil/apps/-/apps-3.3.2.tgz#6d85695dc0cdf032e6340f55105ba89d603d478b"
integrity sha512-aQ4y0i4yE4+qChOBFA+HlRYASjO/806FDq9ikzVktIyNdva9BeDkTPGNBKd39yMWn0AU5Bpgkdf9h3KMu7KEAA==
dependencies:
"@cfx-kit/wallet-avatar" "0.0.5"
"@talismn/connect-wallets" "^1.2.1"
Expand Down Expand Up @@ -1606,10 +1606,10 @@
bignumber.js "^9.1.0"
lodash.clonedeep "^4.5.0"

"@galacticcouncil/ui@^3.0.4":
version "3.1.0"
resolved "https://registry.yarnpkg.com/@galacticcouncil/ui/-/ui-3.1.0.tgz#e91975a898427904c0ad7fa5a13a36ab3bf5afe6"
integrity sha512-H+AuuJHuSR+fnbN0jLd59DXD5mvsadSGseKj5tZDuTaXOSVDGlZ1rj37Ejk+T9SZXvFli9dzsSj7gZVkg9V45Q==
"@galacticcouncil/ui@^3.1.2":
version "3.1.2"
resolved "https://registry.yarnpkg.com/@galacticcouncil/ui/-/ui-3.1.2.tgz#9d67c92155d80177af4bfa8a24a5009ae2b7471c"
integrity sha512-qa5bd+eO84qp7EzBpI4Vi+9KU1Vzkj8mLP+lptStWDrTMUzn8RJi8va0Vj9YV4C1e9Em2hJRIAwaaGEtLMd5TA==
dependencies:
"@floating-ui/dom" "^1.5.1"
"@lit/reactive-element" "^1.0.0"
Expand Down

0 comments on commit 75379a6

Please sign in to comment.