@@ -108,7 +109,7 @@ function TokenBalance({ label, token, value }) {
return (
<>
-
+
{
+ window.open('https://convert.tecommons.org')
+ }
return (
-
- Convert
-
+ Trade
+
)
}
diff --git a/src/components/ModifiedLineChart.js b/src/components/ModifiedLineChart.js
index cc39aa67d..4099aed59 100644
--- a/src/components/ModifiedLineChart.js
+++ b/src/components/ModifiedLineChart.js
@@ -1,6 +1,6 @@
import React, { useMemo, useCallback, useEffect, useRef, useState } from 'react'
import { Spring } from 'react-spring/renderprops'
-import { unselectable, springs } from '@1hive/1hive-ui'
+import { unselectable, springs } from '@tecommons/ui'
const LABELS_HEIGHT = 30
const WIDTH_DEFAULT = 300
diff --git a/src/components/NetworkErrorModal.js b/src/components/NetworkErrorModal.js
index 8d6f02cd7..4a517b755 100644
--- a/src/components/NetworkErrorModal.js
+++ b/src/components/NetworkErrorModal.js
@@ -1,5 +1,5 @@
import React from 'react'
-import { GU, Modal, textStyle, useViewport } from '@1hive/1hive-ui'
+import { GU, Modal, textStyle, useViewport } from '@tecommons/ui'
import flowerError from '../assets/flowerError.svg'
function NetworkErrorModal({ visible }) {
diff --git a/src/components/ProposalActions.js b/src/components/ProposalActions.js
index 81b132d46..dedb13aac 100644
--- a/src/components/ProposalActions.js
+++ b/src/components/ProposalActions.js
@@ -1,5 +1,5 @@
import React, { useCallback, useMemo, useState } from 'react'
-import { Button, Field, GU, Info, Slider, TextInput } from '@1hive/1hive-ui'
+import { Button, Field, GU, Info, Slider, TextInput } from '@tecommons/ui'
import useAccountTotalStaked from '../hooks/useAccountTotalStaked'
import { useAppState } from '../providers/AppState'
diff --git a/src/components/SummaryBar.js b/src/components/SummaryBar.js
index 9eaed10ff..ecbe0c79b 100644
--- a/src/components/SummaryBar.js
+++ b/src/components/SummaryBar.js
@@ -1,6 +1,6 @@
import React from 'react'
import styled from 'styled-components'
-import { springs, useTheme } from '@1hive/1hive-ui'
+import { springs, useTheme } from '@tecommons/ui'
import { Spring, animated } from 'react-spring/renderprops'
function SummaryBar({
diff --git a/src/components/SupportersDistribution.js b/src/components/SupportersDistribution.js
index 56c39d3fb..128a8aef7 100644
--- a/src/components/SupportersDistribution.js
+++ b/src/components/SupportersDistribution.js
@@ -7,7 +7,7 @@ import {
textStyle,
useLayout,
useTheme,
-} from '@1hive/1hive-ui'
+} from '@tecommons/ui'
import { useWallet } from '../providers/Wallet'
import { useAppState } from '../providers/AppState'
import { formatTokenAmount } from '../lib/token-utils'
diff --git a/src/components/Wallet.js b/src/components/Wallet.js
index 3b8dc13a7..9010d64dd 100644
--- a/src/components/Wallet.js
+++ b/src/components/Wallet.js
@@ -6,7 +6,7 @@ import {
shortenAddress,
textStyle,
useTheme,
-} from '@1hive/1hive-ui'
+} from '@tecommons/ui'
import styled from 'styled-components'
import { useAppState } from '../providers/AppState'
import { useWallet } from '../providers/Wallet'
diff --git a/src/components/panels/SupportProposal.js b/src/components/panels/SupportProposal.js
index 10d6dbfbf..d7db1c17b 100644
--- a/src/components/panels/SupportProposal.js
+++ b/src/components/panels/SupportProposal.js
@@ -9,7 +9,7 @@ import {
TextInput,
useSidePanelFocusOnReady,
useTheme,
-} from '@1hive/1hive-ui'
+} from '@tecommons/ui'
import { toDecimals, round, pct } from '../../lib/math-utils'
import useAccountTotalStaked from '../../hooks/useAccountTotalStaked'
import { formatTokenAmount } from '../../lib/token-utils'
diff --git a/src/hooks/useCopyToClipboard.js b/src/hooks/useCopyToClipboard.js
index 1950e27db..5d0677fe4 100644
--- a/src/hooks/useCopyToClipboard.js
+++ b/src/hooks/useCopyToClipboard.js
@@ -1,5 +1,5 @@
import { useCallback } from 'react'
-import { useToast } from '@1hive/1hive-ui'
+import { useToast } from '@tecommons/ui'
import { writeText as copy } from 'clipboard-polyfill'
export function useCopyToClipboard() {
diff --git a/src/index.js b/src/index.js
index d67e764a3..36cb1bb06 100644
--- a/src/index.js
+++ b/src/index.js
@@ -1,13 +1,13 @@
-import React from 'react'
-import ReactDOM from 'react-dom'
-import { HashRouter } from 'react-router-dom'
-import { Main } from '@1hive/1hive-ui'
+import React from "react";
+import ReactDOM from "react-dom";
+import { HashRouter } from "react-router-dom";
+import { Main } from "@tecommons/ui";
-import App from './App'
-import customTheme from './base/theme'
-import MainView from './components/MainView'
-import { WalletProvider } from './providers/Wallet'
-import { AppStateProvider } from './providers/AppState'
+import App from "./App";
+import customTheme from "./base/theme";
+import MainView from "./components/MainView";
+import { WalletProvider } from "./providers/Wallet";
+import { AppStateProvider } from "./providers/AppState";
ReactDOM.render(
@@ -15,9 +15,9 @@ ReactDOM.render(
@@ -29,5 +29,5 @@ ReactDOM.render(
,
- document.getElementById('root')
-)
+ document.getElementById("root")
+);
diff --git a/src/screens/ProposalDetail.js b/src/screens/ProposalDetail.js
index da92a7961..5fe6cb36b 100644
--- a/src/screens/ProposalDetail.js
+++ b/src/screens/ProposalDetail.js
@@ -12,7 +12,7 @@ import {
textStyle,
useLayout,
useTheme,
-} from '@1hive/1hive-ui'
+} from '@tecommons/ui'
import Balance from '../components/Balance'
import {
ConvictionCountdown,
diff --git a/src/screens/Proposals.js b/src/screens/Proposals.js
index 3c05a651c..73eaa5465 100644
--- a/src/screens/Proposals.js
+++ b/src/screens/Proposals.js
@@ -10,7 +10,7 @@ import {
textStyle,
useLayout,
useTheme,
-} from '@1hive/1hive-ui'
+} from '@tecommons/ui'
import { getTokenIconBySymbol } from '../lib/token-utils'
import { useHistory } from 'react-router-dom'
diff --git a/src/screens/StakingTokens.js b/src/screens/StakingTokens.js
index 19ae5a022..6f5428bcd 100644
--- a/src/screens/StakingTokens.js
+++ b/src/screens/StakingTokens.js
@@ -1,6 +1,6 @@
import React, { useCallback, useMemo } from 'react'
import { useHistory } from 'react-router-dom'
-import { Box, Distribution, GU, useTheme, useViewport } from '@1hive/1hive-ui'
+import { Box, Distribution, GU, useTheme, useViewport } from '@tecommons/ui'
import BigNumber from '../lib/bigNumber'
import { stakesPercentages } from '../lib/math-utils'
diff --git a/src/styles/breakpoints.js b/src/styles/breakpoints.js
index 39f035dd2..36cfa8129 100644
--- a/src/styles/breakpoints.js
+++ b/src/styles/breakpoints.js
@@ -1,4 +1,4 @@
-import { GU } from '@1hive/1hive-ui'
+import { GU } from '@tecommons/ui'
// These breakpoints values represent minimum screen sizes.
export const BREAKPOINTS = {
diff --git a/yarn.lock b/yarn.lock
index 9db450bd8..1e7d7deae 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1481,6 +1481,31 @@
penpal "3.0.7"
pocket-js-core "0.0.3"
+"@tecommons/ui@^1.0.5":
+ version "1.0.5"
+ resolved "https://registry.yarnpkg.com/@tecommons/ui/-/ui-1.0.5.tgz#8651e3dc5f04542490c0718852d197e6bb06631a"
+ integrity sha512-k/Iy0TP0YpLyFYexaBXHFX5QkP7/vZqedvVV0sNPEAvCVSp21nBts12uKizTTmCH+O93MAGZXg9w1TSv9qqCFg==
+ dependencies:
+ "@babel/runtime" "^7.3.1"
+ airbnb-prop-types "^2.9.0"
+ arg "^2.0.0"
+ command-exists "^1.2.6"
+ dayjs "^1.8.14"
+ js-sha3 "^0.8.0"
+ jsbi "^3.1.2"
+ lodash "^4.17.19"
+ markdown-to-jsx "^6.11.0"
+ popper.js "^1.14.4"
+ prop-types "^15.6.0"
+ react-blockies "^1.4.0"
+ react-display-name "^0.2.3"
+ react-onclickout "^2.0.8"
+ react-spring "^7.2.11"
+ recursive-copy "^2.0.9"
+ token-amount "^0.1.0"
+ use-inside "^0.2.0"
+ use-token "^0.2.0"
+
"@toruslabs/eccrypto@^1.1.4":
version "1.1.5"
resolved "https://registry.yarnpkg.com/@toruslabs/eccrypto/-/eccrypto-1.1.5.tgz#c4b9319e02e913fecd90f3f2b98ae2699e7d498e"
@@ -10156,6 +10181,13 @@ toidentifier@1.0.0:
resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.0.tgz#7e1be3470f1e77948bc43d94a3c8f4d7752ba553"
integrity sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==
+token-amount@^0.1.0:
+ version "0.1.0"
+ resolved "https://registry.yarnpkg.com/token-amount/-/token-amount-0.1.0.tgz#1b25775346a7de4df47a988ecf022ffe2d4b6f76"
+ integrity sha512-3p2HE8ef1PKB6Rl6tMmQW289esS5PWsPq/mG8JyyQUFe/1I3LtDBmSGYzzqW/99uvvoQNpUURI1fX8uZE6LSow==
+ dependencies:
+ jsbi "^3.1.1"
+
tough-cookie@^2.3.3, tough-cookie@^2.5.0, tough-cookie@~2.5.0:
version "2.5.0"
resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.5.0.tgz#cd9fb2a0aa1d5a12b473bd9fb96fa3dcff65ade2"
@@ -10403,6 +10435,13 @@ use-inside@^0.2.0:
dependencies:
prop-types "^15.7.2"
+use-token@^0.2.0:
+ version "0.2.0"
+ resolved "https://registry.yarnpkg.com/use-token/-/use-token-0.2.0.tgz#5690aec9fcc327cf843eb8ff01cd1f75f7d93a25"
+ integrity sha512-lvKboDH7okV/SAb9q4Fs+kgEOS976SvHPMzpy+KCKXXVAMzG30znfsvYKiiK2Mdg+QU4vil0+NHXZ6ozuo+ysw==
+ dependencies:
+ js-sha3 "^0.8.0"
+
use-wallet@^0.5.0:
version "0.5.0"
resolved "https://registry.yarnpkg.com/use-wallet/-/use-wallet-0.5.0.tgz#8f9bc6c5186d4eebd24dc2cbd850ca5904567f78"