Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
bistaastha committed Dec 26, 2024
1 parent 8e62320 commit 648f6c0
Show file tree
Hide file tree
Showing 4 changed files with 99 additions and 2 deletions.
24 changes: 24 additions & 0 deletions src/app/shared/components/popup-alert/popup-alert.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,30 @@
</div>
</ion-header>

<div class="popup-alert--card-details-container" *ngIf="cardsList?.successfulCards?.length > 0">
<div class="popup-alert--content-container">
<div class="popup-alert--success-tick-container">
<ion-icon class="popup-alert--success-tick" src="/assets/svg/check.svg"></ion-icon>
</div>
<div>
<div class="popup-alert--content-header">Successfully connected</div>
<div class="popup-alert--card-numbers">
{{ cardsList?.successfulCards?.join() }}
</div>
</div>
</div>
<div class="popup-alert--content-container">
<div class="popup-alert--error-tick-container">
<ion-icon class="popup-alert--error-icon" src="/assets/svg/error-outlined.svg"></ion-icon>
</div>
<div>
<div class="popup-alert--content-header">Failed Connecting</div>
<div class="popup-alert--card-numbers">
{{ cardsList?.failedCards?.join(', ') }}
</div>
</div>
</div>
</div>
<div class="popup-alert--body ion-text-center" [innerHtml]="message"></div>

<div class="popup-alert--info-container" *ngIf="flaggedExpensesCount">
Expand Down
69 changes: 69 additions & 0 deletions src/app/shared/components/popup-alert/popup-alert.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,73 @@ $small-screen: 700px;
background: $red;
}
}

&--success-tick-container {
border-radius: 4px;
background: $success-bg;
width: 24px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
}

&--success-tick {
height: 14px;
width: 14px;
fill: $green;
}

&--success-tick-container {
border-radius: 4px;
background: $success-bg;
width: 24px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
}

&--success-tick {
height: 14px;
width: 14px;
fill: $green;
}

&--error-tick-container {
border-radius: 4px;
background: $pale-pink;
width: 24px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
}

&--error-icon {
height: 14px;
width: 14px;
fill: $red;
}

&--content-container {
display: flex;
padding: 12px;
align-items: flex-start;
gap: 12px;
align-self: stretch;
border-radius: 4px;
border: 1px solid $border-tertiary;
padding: 12px;
margin-bottom: 16px;
}

&--content-header {
color: $black;
font-size: 14px;
font-style: normal;
font-weight: 500;
line-height: 1.4;
margin-bottom: 6px;
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { Component, Input } from '@angular/core';
import { PopoverController } from '@ionic/angular';
import { CardNetworkType } from 'src/app/core/enums/card-network-type';
import { PopoverCardsList } from 'src/app/core/models/popover-cards-list.model';
@Component({
selector: 'app-popup-alert',
templateUrl: './popup-alert.component.html',
Expand All @@ -16,9 +18,11 @@ export class PopupAlertComponent {

@Input() flaggedExpensesCount = 0;

@Input() cardsList: PopoverCardsList;

constructor(private popoverController: PopoverController) {}

ctaClickedEvent(action) {
ctaClickedEvent(action: string): void {
this.popoverController.dismiss({
action,
});
Expand Down
2 changes: 1 addition & 1 deletion src/assets/svg/check.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 648f6c0

Please sign in to comment.