forked from airgap-it/airgap-wallet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feat/atom-detailed-amount' into 'develop'
Feat/atom detailed amount See merge request papers/airgap/airgap-wallet!212
- Loading branch information
Showing
24 changed files
with
215 additions
and
37 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
18 changes: 18 additions & 0 deletions
18
src/app/components/widget-account-extended-details/widget-account-extended-details.html
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,18 @@ | ||
<ng-container *ngFor="let item of widget.items"> | ||
<ion-row class="ion-padding-horizontal ion-padding-top"> | ||
<ion-col> | ||
<ion-text color="blackLight"> | ||
<h3 class="typography--mono ion-no-margin"> | ||
{{ item.label | translate }} | ||
</h3> | ||
</ion-text> | ||
</ion-col> | ||
<ion-col> | ||
<p class="ion-text-end ion-no-margin"> | ||
<strong> | ||
{{ item.text }} | ||
</strong> | ||
</p> | ||
</ion-col> | ||
</ion-row> | ||
</ng-container> |
Empty file.
12 changes: 12 additions & 0 deletions
12
src/app/components/widget-account-extended-details/widget-account-extended-details.ts
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,12 @@ | ||
import { Component, Input } from '@angular/core' | ||
import { UIAccountExtendedDetails } from 'src/app/models/widgets/display/UIAccountExtendedDetails' | ||
|
||
@Component({ | ||
selector: 'widget-account-extended-details', | ||
templateUrl: 'widget-account-extended-details.html', | ||
styleUrls: ['widget-account-extended-details.scss'] | ||
}) | ||
export class WidgetAccountExtendedDetails { | ||
@Input() | ||
public readonly widget: UIAccountExtendedDetails | ||
} |
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
21 changes: 21 additions & 0 deletions
21
src/app/models/widgets/display/UIAccountExtendedDetails.ts
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,21 @@ | ||
import { UIWidget, UIWidgetType, UIWidgetConfig } from '../UIWidget' | ||
|
||
export interface UIAccountExtendedDetailsConfig extends UIWidgetConfig { | ||
items: UIAccountExtendedDetailsItem[] | ||
} | ||
|
||
export interface UIAccountExtendedDetailsItem { | ||
label: string | ||
text: string | ||
} | ||
|
||
export class UIAccountExtendedDetails extends UIWidget { | ||
public type = UIWidgetType.ACCOUNT_EXTENDED_DETAILS | ||
|
||
public items: UIAccountExtendedDetailsItem[] | ||
|
||
constructor(config: UIAccountExtendedDetailsConfig) { | ||
super(config) | ||
this.items = config.items | ||
} | ||
} |
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.