mirror of
https://github.com/bitwarden/browser
synced 2026-02-04 10:43:47 +00:00
temp-fix(billing): add currency pipe to pricing card component
This commit is contained in:
@@ -24,9 +24,9 @@
|
||||
@if (price(); as priceValue) {
|
||||
<div class="tw-mb-6">
|
||||
<div class="tw-flex tw-items-baseline tw-gap-1 tw-flex-wrap">
|
||||
<span class="tw-text-3xl tw-font-bold tw-leading-none tw-m-0"
|
||||
>${{ priceValue.amount }}</span
|
||||
>
|
||||
<span class="tw-text-3xl tw-font-bold tw-leading-none tw-m-0">{{
|
||||
priceValue.amount | currency: "USD" : "symbol"
|
||||
}}</span>
|
||||
<span bitTypography="helper" class="tw-text-muted">
|
||||
/ {{ priceValue.cadence }}
|
||||
@if (priceValue.showPerUser) {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { CurrencyPipe } from "@angular/common";
|
||||
import { Component, EventEmitter, input, Output } from "@angular/core";
|
||||
|
||||
import {
|
||||
@@ -17,7 +18,7 @@ import {
|
||||
@Component({
|
||||
selector: "billing-pricing-card",
|
||||
templateUrl: "./pricing-card.component.html",
|
||||
imports: [BadgeModule, ButtonModule, IconModule, TypographyModule],
|
||||
imports: [BadgeModule, ButtonModule, IconModule, TypographyModule, CurrencyPipe],
|
||||
})
|
||||
export class PricingCardComponent {
|
||||
tagline = input.required<string>();
|
||||
|
||||
Reference in New Issue
Block a user