Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat][602] add arrow icon #3485

Merged
merged 1 commit into from
Jun 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/app/core/constants/contract.constant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export const EVM_CONTRACT_TABLE_TEMPLATES: Array<TableTemplate> = [
isUrl: '/address',
isNameTag: true,
},
{ matColumnDef: 'arrow', headerCellDef: ' ', type: 'status', headerWidth: 1 },
{
matColumnDef: 'to',
headerCellDef: 'To',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
class="mr-2" />
<div>
Are you the contract creator?
<a class="text--primary" [routerLink]="['verify']"> Verify and Publish </a>
<a class="text--primary" [routerLink]="['/evm-contracts', contractsAddress, 'verify']"> Verify and Publish</a>
your contract source code today!
</div>
</div>
Expand All @@ -135,7 +135,9 @@
class="mr-2" />
<div>
In case this is proxy contract, verify
<a class="text--primary" [routerLink]="['proxy-verify']"> Is this a proxy </a>
<a class="text--primary" [routerLink]="['/evm-contracts', contractsAddress, 'proxy-verify']">
Is this a proxy
</a>
or not?
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,6 @@
</app-name-tag>
</ng-container>
</div>
<ng-container *ngIf="!isSearchAddress">
<img
[src]="'assets/images/icons/arrow-right.png' | imageS3"
width="14"
height="9"
class="mr-lg-3 mr-0 ml-3" />
</ng-container>
<ng-container *ngIf="isSearchAddress">
<div class="box-token-transfer">
<span
Expand All @@ -134,6 +127,9 @@
</ng-container>
</div>
</ng-container>
<ng-container *ngSwitchCase="'arrow'">
<img [src]="'assets/icons/icons-svg/basic/arrow-circle-right.svg'" alt="" class="mr-1" />
</ng-container>
<ng-container *ngSwitchCase="'to_address'">
<div [style.min-width]="'210px'">
<app-name-tag
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ export class EvmTokenTransfersTabComponent implements OnInit, AfterViewInit {
{ matColumnDef: 'type', headerCellDef: 'Method', isShort: true, headerWidth: 170 },
// { matColumnDef: 'status', headerCellDef: 'Result' },
{ matColumnDef: 'timestamp', headerCellDef: 'Time', headerWidth: 150 },
{ matColumnDef: 'from_address', headerCellDef: 'From', headerWidth: 250 },
{ matColumnDef: 'from_address', headerCellDef: 'From', headerWidth: 200 },
{ matColumnDef: 'arrow', headerCellDef: ' ', headerWidth: 28 },
{ matColumnDef: 'to_address', headerCellDef: 'To', headerWidth: 180 },
{ matColumnDef: 'amountToken', headerCellDef: 'Amount', isShort: true, headerWidth: 100 },
];
Expand All @@ -47,7 +48,8 @@ export class EvmTokenTransfersTabComponent implements OnInit, AfterViewInit {
{ matColumnDef: 'type', headerCellDef: 'Method', isShort: true, headerWidth: 170 },
// { matColumnDef: 'status', headerCellDef: 'Result' },
{ matColumnDef: 'timestamp', headerCellDef: 'Time', headerWidth: 150 },
{ matColumnDef: 'from_address', headerCellDef: 'From', headerWidth: 250 },
{ matColumnDef: 'from_address', headerCellDef: 'From', headerWidth: 200 },
{ matColumnDef: 'arrow', headerCellDef: ' ', headerWidth: 28 },
{ matColumnDef: 'to_address', headerCellDef: 'To', headerWidth: 180 },
{ matColumnDef: 'token_id', headerCellDef: 'Token ID' },
{ matColumnDef: 'details', headerCellDef: 'Details', headerWidth: 120 },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
</app-name-tag>
<span *ngIf="!data[template.matColumnDef]">-</span>
</ng-container>
<ng-container *ngSwitchCase="'arrow'">
<img [src]="'assets/icons/icons-svg/basic/arrow-circle-right.svg'" alt="" class="mr-1" />
</ng-container>
<ng-container *ngSwitchCase="'to'">
<app-name-tag
[value]="data[template.matColumnDef] | beautyAddress"
Expand Down
5 changes: 3 additions & 2 deletions src/app/pages/evm-transactions/evm-transactions.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ export class EvmTransactionsComponent {
{ matColumnDef: 'method', headerCellDef: 'Method', headerWidth: 216 },
{ matColumnDef: 'height', headerCellDef: 'Height', headerWidth: 110 },
{ matColumnDef: 'timestamp', headerCellDef: 'Time', headerWidth: 136 },
{ matColumnDef: 'from', headerCellDef: 'From', headerWidth: 214 },
{ matColumnDef: 'from', headerCellDef: 'From', headerWidth: 200 },
{ matColumnDef: 'arrow', headerCellDef: ' ', headerWidth: 28 },
{ matColumnDef: 'to', headerCellDef: 'To', headerWidth: 214 },
{ matColumnDef: 'amount', headerCellDef: 'Amount', headerWidth: 176 },
{ matColumnDef: 'amount', headerCellDef: 'Amount', headerWidth: 136 },
{ matColumnDef: 'hash', headerCellDef: this.denom ? `Cosmos Txn` : 'Txn', headerWidth: 108 },
];
displayedColumns: string[] = this.templates.map((dta) => dta.matColumnDef);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,6 @@
</app-name-tag>
</ng-container>
</div>
<ng-container *ngIf="!isSearchAddress">
<img
[src]="'assets/images/icons/arrow-right.png' | imageS3"
width="14"
height="9"
class="mr-lg-3 mr-0 ml-3" />
</ng-container>
<ng-container *ngIf="isSearchAddress">
<div class="box-token-transfer">
<span
Expand All @@ -139,6 +132,9 @@
</ng-container>
</div>
</ng-container>
<ng-container *ngSwitchCase="'arrow'">
<img [src]="'assets/icons/icons-svg/basic/arrow-circle-right.svg'" alt="" class="mr-3" />
</ng-container>
<ng-container *ngSwitchCase="'to_address'">
<div [style.min-width]="'210px'">
<app-name-tag
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ export class TokenTransfersTabComponent implements OnInit, AfterViewInit {
{ matColumnDef: 'type', headerCellDef: 'Method', isShort: true, headerWidth: 170 },
// { matColumnDef: 'status', headerCellDef: 'Result' },
{ matColumnDef: 'timestamp', headerCellDef: 'Time' },
{ matColumnDef: 'from_address', headerCellDef: 'From', headerWidth: 250 },
{ matColumnDef: 'from_address', headerCellDef: 'From', headerWidth: 220 },
{ matColumnDef: 'arrow', headerCellDef: ' ', headerWidth: 28 },
{ matColumnDef: 'to_address', headerCellDef: 'To', headerWidth: 180 },
{ matColumnDef: 'amountToken', headerCellDef: 'Amount', isShort: true, headerWidth: 100 },
];
Expand All @@ -55,7 +56,8 @@ export class TokenTransfersTabComponent implements OnInit, AfterViewInit {
{ matColumnDef: 'type', headerCellDef: 'Method', isShort: true, headerWidth: 170 },
// { matColumnDef: 'status', headerCellDef: 'Result' },
{ matColumnDef: 'timestamp', headerCellDef: 'Time', headerWidth: 150 },
{ matColumnDef: 'from_address', headerCellDef: 'From', headerWidth: 250 },
{ matColumnDef: 'from_address', headerCellDef: 'From', headerWidth: 220 },
{ matColumnDef: 'arrow', headerCellDef: ' ', headerWidth: 28 },
{ matColumnDef: 'to_address', headerCellDef: 'To', headerWidth: 180 },
{ matColumnDef: 'token_id', headerCellDef: 'Token ID' },
{ matColumnDef: 'details', headerCellDef: 'Details', headerWidth: 120 },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@
<ng-container *ngSwitchCase="'time-distance'">
{{ data[template.matColumnDef] | customDateTime: 'Distance' }}
</ng-container>
<ng-container *ngIf="template.matColumnDef === 'arrow'">
<img [src]="'assets/icons/icons-svg/basic/arrow-circle-right.svg'" alt="" class="mr-1" />
</ng-container>
<div *ngSwitchDefault>{{ data[template.matColumnDef] }}</div>
</ng-container>
</td>
Expand Down
5 changes: 5 additions & 0 deletions src/assets/icons/icons-svg/basic/arrow-circle-right.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.