Skip to content

Commit

Permalink
Merge pull request #199 from Cryptorubic/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
siandreev authored Apr 6, 2021
2 parents 39a4452 + 131408c commit e51498f
Show file tree
Hide file tree
Showing 36 changed files with 914 additions and 488 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ export class TradeParametersService {
fromToken: null,
toToken: null,
fromAmount: null,
toAmount: null
toAmount: null,

isCustomFromTokenFormOpened: false,
isCustomToTokenFormOpened: false,
customFromTokenAddress: null,
customToTokenAddress: null
}
}),
{} as Trades
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<thead>
<tr>
<th>
<span>Status</span>
<span>{{ 'Status' | translate }}</span>
<img
[src]="'assets/images/bridge/' + getArrow('Status')"
alt="Sort"
Expand All @@ -44,15 +44,15 @@
/>
</th>
<th>
<span>Spent</span>
<span>{{ 'SEND' | translate }}</span>
<img
[src]="'assets/images/bridge/' + getArrow('Spent')"
alt="Sort"
(click)="onSortClick('Spent')"
/>
</th>
<th>
<span>Expected</span>
<span>{{ 'GET' | translate }}</span>
<img
[src]="'assets/images/bridge/' + getArrow('Expected')"
alt="Sort"
Expand Down Expand Up @@ -95,22 +95,24 @@
</td>

<td class="data__amount">
<div>{{ tx.actualFromAmount }}</div>
<img [src]="tx.image_link" alt="" />
<span>{{ tx[Blockchains[tx.fromNetwork].symbolPropName] }}</span>
<div class="data__amount-inner">
<div class="data__amount-number">{{ tx.actualFromAmount }}</div>
<img [src]="tx.image_link" alt="" />
<span>{{ tx[Blockchains[tx.fromNetwork].symbolPropName] }}</span>
</div>
</td>

<td class="data__amount">
<div>{{ tx.actualToAmount }}</div>
<img [src]="tx.image_link" alt="" />
<span>{{ tx[Blockchains[tx.toNetwork].symbolPropName] }}</span>
<div class="data__amount-inner">
<div class="data__amount-number">{{ tx.actualToAmount }}</div>
<img [src]="tx.image_link" alt="" />
<span>{{ tx[Blockchains[tx.toNetwork].symbolPropName] }}</span>
</div>
</td>

<td class="data__date">
<div>
{{ tx.updateTime.split(' ')[0] }}
<br />
{{ tx.updateTime.split(' ')[1] }}
{{ tx.updateTime.split(' ')[0] }} {{ tx.updateTime.split(' ')[1] }}
</div>
</td>
</tr>
Expand Down Expand Up @@ -171,15 +173,19 @@
</div>

<div class="data__amount" *ngIf="selectedOption === 'Spent'">
<div>{{ tx.actualFromAmount }}</div>
<img [src]="tx.image_link" alt="" />
<span>{{ tx[Blockchains[tx.fromNetwork].symbolPropName] }}</span>
<div class="data__amount-inner">
<div class="data__amount-number">{{ tx.actualFromAmount }}</div>
<img [src]="tx.image_link" alt="" />
<span>{{ tx[Blockchains[tx.fromNetwork].symbolPropName] }}</span>
</div>
</div>

<div class="data__amount" *ngIf="selectedOption === 'Expected'">
<div>{{ tx.actualToAmount }}</div>
<img [src]="tx.image_link" alt="" />
<span>{{ tx[Blockchains[tx.toNetwork].symbolPropName] }}</span>
<div class="data__amount-inner">
<div class="data__amount-number">{{ tx.actualToAmount }}</div>
<img [src]="tx.image_link" alt="" />
<span>{{ tx[Blockchains[tx.toNetwork].symbolPropName] }}</span>
</div>
</div>

<div class="data__date" *ngIf="selectedOption === 'Date'">
Expand Down Expand Up @@ -223,20 +229,24 @@
</div>

<div class="content__item">
<div class="content__item-name">Spent</div>
<div class="content__item-name">{{ 'GET' | translate}}</div>
<div class="data__amount">
<div>{{ tx.actualFromAmount }}</div>
<img [src]="tx.image_link" alt="" />
<span>{{ tx[Blockchains[tx.fromNetwork].symbolPropName] }}</span>
<div class="data__amount-inner">
<div class="data__amount-number">{{ tx.actualFromAmount }}</div>
<img [src]="tx.image_link" alt="" />
<span>{{ tx[Blockchains[tx.fromNetwork].symbolPropName] }}</span>
</div>
</div>
</div>

<div class="content__item">
<div class="content__item-name">Expected</div>
<div class="content__item-name">{{ 'SEND' | translate}}</div>
<div class="data__amount">
<div>{{ tx.actualToAmount }}</div>
<img [src]="tx.image_link" alt="" />
<span>{{ tx[Blockchains[tx.toNetwork].symbolPropName] }}</span>
<div class="data__amount-inner">
<div class="data__amount-number">{{ tx.actualToAmount }}</div>
<img [src]="tx.image_link" alt="" />
<span>{{ tx[Blockchains[tx.toNetwork].symbolPropName] }}</span>
</div>
</div>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@
}

.data__amount {
display: flex;
padding: 0;
}

Expand Down Expand Up @@ -236,7 +237,7 @@
align-items: center;
padding-left: 20px;

color: rgba(black, 0.5);
color: black;

&::before {
position: relative;
Expand Down Expand Up @@ -284,14 +285,18 @@
}
}

&__amount {
padding: 20px 0 13px 20px;
&__amount-inner {
display: flex;
}

div {
margin-bottom: 7px;
&__amount-number {
margin-right: 10px;

font-weight: bold;
}
font-weight: bold;
}

&__amount {
padding: 13px 20px;

img {
max-width: 15px;
Expand All @@ -305,7 +310,7 @@
}

&__date {
color: rgba(black, 0.5);
color: black;

div {
width: fit-content;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
fromNumber != undefined &&
fromNumber.lt(selectedToken.minAmount)
"
src="assets/images/icons/warning-red.svg"
src="assets/images/icons/error-disclaimer-sign.svg"
alt=""
/>
</td>
Expand All @@ -97,7 +97,7 @@
fromNumber != undefined &&
fromNumber.gt(selectedToken.maxAmount)
"
src="assets/images/icons/warning-red.svg"
src="assets/images/icons/error-disclaimer-sign.svg"
alt=""
/>
</td>
Expand All @@ -113,7 +113,7 @@
(click)="revertBlockchains()"
>
<img
src="../../../assets/images/icons/revert.svg"
src="assets/images/icons/revert.svg"
class="choose-blockchains__revert-icon"
alt="Revert"
/>
Expand Down
Loading

0 comments on commit e51498f

Please sign in to comment.