-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
162b8ca
commit ea0b00d
Showing
15 changed files
with
560 additions
and
69 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
26 changes: 26 additions & 0 deletions
26
src/pages/PlanPage/subRoutes/CurrentOrgPlan/BillingDetails/PaymentCard/BankInformation.tsx
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,26 @@ | ||
import { z } from 'zod' | ||
|
||
import bankLogo from 'assets/billing/bank.svg' | ||
import { SubscriptionDetailSchema } from 'services/account' | ||
|
||
interface BankInformationProps { | ||
subscriptionDetail: z.infer<typeof SubscriptionDetailSchema> | ||
} | ||
function BankInformation({ subscriptionDetail }: BankInformationProps) { | ||
return ( | ||
<div className="flex flex-col gap-2"> | ||
<div className="flex gap-1"> | ||
<img src={bankLogo} alt="bank logo" /> | ||
<div className="ml-1 flex flex-col self-center"> | ||
<b> | ||
{subscriptionDetail?.defaultPaymentMethod?.usBankAccount?.bankName} | ||
•••• | ||
{subscriptionDetail?.defaultPaymentMethod?.usBankAccount?.last4} | ||
</b> | ||
</div> | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
export default BankInformation |
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.