Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
bistaastha committed Feb 8, 2024
1 parent 64109d3 commit 5e4069d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 21 deletions.
3 changes: 2 additions & 1 deletion src/app/core/mock-data/virtual-card-details-response.data.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { CardDetailsAmountResponse, CardDetailsResponse } from '../models/card-details-response.model';
import { CardDetailsAmountResponse } from '../models/card-details-amount-response';
import { CardDetailsResponse } from '../models/card-details-response.model';
import { PlatformApiResponse } from '../models/platform/platform-api-response.model';

export const virtualCardDetailsResponse: { data: CardDetailsResponse } = {
Expand Down
3 changes: 1 addition & 2 deletions src/app/core/models/platform-corporate-card-detail.model.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { CardDetailsResponseWithNickName } from './card-details-response.model';
import { CardDetailsWithAmountResponse } from './card-details-with-amount-response.model';
import { CardDetailsResponseWithNickName } from './card-details-response-with-nickname.model';
import { PlatformCorporateCard } from './platform/platform-corporate-card.model';

export interface PlatformCorporateCardDetail {
Expand Down
1 change: 0 additions & 1 deletion src/app/fyle/dashboard/card-stats/card-stats.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ export class CardStatsComponent implements OnInit {
return this.virtualCardsService.getCardDetailsAndAmountInSerial(virtualCardIds).pipe(
map((virtualCardsMap) => {
cardDetails.forEach((cardDetail) => {
console.log(cardDetail);
cardDetail.virtualCardDetail = virtualCardsMap[cardDetail.card.virtual_card_id];
});
return cardDetails;
Expand Down
19 changes: 2 additions & 17 deletions src/app/shared/components/virtual-card/virtual-card.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</div>
</div>
</div>
<div class="ion-align-items-center d-flex">
<div class="d-flex">
<div *ngIf="!showCardNumber" class="virtual-card__card-number__card-number-mask d-flex">
<div>****</div>
<div>******</div>
Expand All @@ -35,22 +35,7 @@
></ion-icon>
</div>
</div>
<div class="virtual-card__card-fields ion-align-items-center d-flex">
<div class="virtual-card__card-fields__cvv-field">
<div class="virtual-card__card-fields__label-text">CVV</div>
<div class="d-flex">
<div *ngIf="!showCvv" class="virtual-card__card-fields__cvv-mask">****</div>
<div *ngIf="showCvv" class="virtual-card__card-fields__cvv-number">{{ cvv }}</div>
<ion-icon
class="virtual-card__card-fields__cvv-copy-icon"
src="../../../../../assets/svg/duplicate.svg"
(press)="toggleShowCvv()"
(pressup)="hideCvvAndCopy()"
(tap)="copyToClipboard(cvv)"
></ion-icon>
</div>
</div>
</div>

<div class="virtual-card__card-fields ion-align-items-center d-flex">
<div class="virtual-card__card-fields__cvv-field">
<div class="virtual-card__card-fields__label-text">CVV</div>
Expand Down

0 comments on commit 5e4069d

Please sign in to comment.