diff --git a/.gitignore b/.gitignore index cd3bba56..c349c858 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,10 @@ /.pnp .pnp.js +# TradingView +public/charting_library +public/datafeeds + # testing /coverage @@ -34,4 +38,4 @@ yarn-error.log* .vercel # typescript -*.tsbuildinfo +tsconfig.tsbuildinfo diff --git a/components/account/AccountChart.tsx b/components/account/AccountChart.tsx index 90434550..214fa937 100644 --- a/components/account/AccountChart.tsx +++ b/components/account/AccountChart.tsx @@ -55,6 +55,7 @@ const AccountChart = ({ daysToShow={daysToShow} hideChart={hideChart} loading={loading} + prefix="$" setDaysToShow={handleDaysToShow} tickFormat={(x) => `$${x.toFixed(2)}`} title={t(chartToShow)} diff --git a/components/account/AccountPage.tsx b/components/account/AccountPage.tsx index 585cef98..e3abd6a7 100644 --- a/components/account/AccountPage.tsx +++ b/components/account/AccountPage.tsx @@ -260,7 +260,7 @@ const AccountPage = () => { )}
{t('today')}
{t('today')}
{t('today')}
{t('settings:number-scroll')}
+{t('settings:number-scroll')}
{t('settings:orderbook-flash')}
+{t('settings:orderbook-flash')}
{t('settings:swap-success')}
+{t('settings:swap-success')}
{t('settings:theme')}
+{t('settings:theme')}
{t('settings:language')}
+{t('settings:language')}
{t('settings:notification-position')}
+{t('settings:notification-position')}
{t('settings:swap-trade-size-selector')}
+{t('settings:swap-trade-size-selector')}
{t('settings:recent-trades')}
+{t('settings:recent-trades')}
{t('settings:swap-success')}
+{t('settings:swap-success')}
{t('settings:transaction-success')}
+{t('settings:transaction-success')}
{t('settings:transaction-fail')}
+{t('settings:transaction-fail')}
{title}
++ {title} +
{mouseData ? (+
{dayjs(mouseData[xKey]).format('DD MMM YY, h:mma')}
+
{dayjs(data[data.length - 1][xKey]).format(
'DD MMM YY, h:mma'
)}
@@ -179,14 +224,16 @@ const DetailedAreaChart: FunctionComponent
{bank?.uiPrice ? formatFixedDecimals(bank.uiPrice, true) : '-'}
-- {t('total-deposit-value')} -
-{formatFixedDecimals(totalDepositValue || 0.0, true)}
- )} + {loadingStats ? ( +- {t('total-borrow-value')} -
-