-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1561 from bancorprotocol/issue-#1336
Trade Count
- Loading branch information
Showing
51 changed files
with
138 additions
and
236 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+4.88 KB
(110%)
e2e/screenshots/simulator/recurring/Recurring_limit_limit/form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+10.4 KB
(120%)
e2e/screenshots/simulator/recurring/Recurring_range_limit/form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+108 Bytes
(100%)
e2e/screenshots/strategy/disposable/Disposable_buy_limit/create/form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.1 KB
(98%)
e2e/screenshots/strategy/disposable/Disposable_buy_limit/create/my-strategy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+4.35 KB
(110%)
e2e/screenshots/strategy/disposable/Disposable_buy_limit/deposit/form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-32 Bytes
(100%)
e2e/screenshots/strategy/disposable/Disposable_buy_range/create/form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.11 KB
(98%)
e2e/screenshots/strategy/disposable/Disposable_buy_range/create/my-strategy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-466 Bytes
(99%)
e2e/screenshots/strategy/disposable/Disposable_buy_range/deposit/form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-17 Bytes
(100%)
e2e/screenshots/strategy/disposable/Disposable_buy_range/duplicate/form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2 Bytes
(100%)
e2e/screenshots/strategy/disposable/Disposable_sell_limit/create/form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-823 Bytes
(99%)
e2e/screenshots/strategy/disposable/Disposable_sell_limit/create/my-strategy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-830 Bytes
(99%)
e2e/screenshots/strategy/disposable/Disposable_sell_range/create/my-strategy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-782 Bytes
(99%)
e2e/screenshots/strategy/overlapping/Overlapping/create/my-strategy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+34 Bytes
(100%)
e2e/screenshots/strategy/recurring/Recurring_limit_limit/create/form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-867 Bytes
(99%)
e2e/screenshots/strategy/recurring/Recurring_limit_limit/create/my-strategy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+4.65 KB
(110%)
e2e/screenshots/strategy/recurring/Recurring_limit_limit/deposit/form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-857 Bytes
(99%)
e2e/screenshots/strategy/recurring/Recurring_limit_range/create/my-strategy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-50 Bytes
(100%)
e2e/screenshots/strategy/recurring/Recurring_limit_range/deposit/form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-868 Bytes
(99%)
e2e/screenshots/strategy/recurring/Recurring_range_limit/create/my-strategy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+4.65 KB
(110%)
e2e/screenshots/strategy/recurring/Recurring_range_limit/deposit/form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-3.7 KB
(95%)
e2e/screenshots/strategy/recurring/Recurring_range_range/create/form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-857 Bytes
(99%)
e2e/screenshots/strategy/recurring/Recurring_range_range/create/my-strategy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-4.58 KB
(93%)
e2e/screenshots/strategy/recurring/Recurring_range_range/deposit/form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-3.77 KB
(95%)
e2e/screenshots/strategy/recurring/Recurring_range_range/undercut/form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 6 additions & 7 deletions
13
src/components/strategies/overview/strategyBlock/StrategyBlockInfo.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
import { FC } from 'react'; | ||
import { StrategyWithFiat } from 'libs/queries'; | ||
import { StrategyBlockRoi } from 'components/strategies/overview/strategyBlock/StrategyBlockRoi'; | ||
import { StrategyBlockTradeCount } from 'components/strategies/overview/strategyBlock/StrategyBlockTradeCount'; | ||
import { StrategyBlockBudget } from 'components/strategies/overview/strategyBlock/StrategyBlockBudget'; | ||
|
||
interface Props { | ||
strategy: StrategyWithFiat; | ||
showStrategyRoi?: boolean; | ||
} | ||
|
||
export const StrategyBlockInfo: FC<Props> = ({ strategy, showStrategyRoi }) => { | ||
export const StrategyBlockInfo: FC<Props> = ({ strategy }) => { | ||
return ( | ||
<> | ||
{!!showStrategyRoi && <StrategyBlockRoi strategy={strategy} />} | ||
<StrategyBlockBudget strategy={strategy} fullWidth={!showStrategyRoi} /> | ||
</> | ||
<div className="flex gap-16"> | ||
<StrategyBlockTradeCount strategy={strategy} /> | ||
<StrategyBlockBudget strategy={strategy} /> | ||
</div> | ||
); | ||
}; |
50 changes: 0 additions & 50 deletions
50
src/components/strategies/overview/strategyBlock/StrategyBlockRoi.tsx
This file was deleted.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
src/components/strategies/overview/strategyBlock/StrategyBlockTradeCount.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { FC } from 'react'; | ||
import { cn, prettifyNumber } from 'utils/helpers'; | ||
import { StrategyWithFiat } from 'libs/queries'; | ||
|
||
interface Props { | ||
strategy: StrategyWithFiat; | ||
} | ||
|
||
export const StrategyBlockTradeCount: FC<Props> = ({ strategy }) => { | ||
const count = prettifyNumber(strategy.tradeCount, { | ||
abbreviate: true, | ||
decimals: 0, | ||
}); | ||
return ( | ||
<article | ||
className={cn( | ||
'rounded-8 border-background-800 flex w-2/5 flex-col border-2 p-16', | ||
strategy.status === 'active' ? '' : 'opacity-50' | ||
)} | ||
> | ||
<h4 className="text-12 flex items-center gap-4 text-white/60"> | ||
Trade Count | ||
</h4> | ||
<p className="text-18 font-weight-500 truncate">{count}</p> | ||
</article> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.