complete user bank cards page (create read delete)

This commit is contained in:
Alihaghighattalab
2024-08-14 18:10:45 +03:30
parent 855cbc414d
commit 5efff3f4b3
9 changed files with 53 additions and 41 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
import { BankCartInterface, BanksInterface } from "../types";
export const formatCartNumber = (num: string) => {
export const formatCartNumber = (num: string | number) => {
return num?.toString().replace(/\B(?=(\d{4})+(?!\d))/g, `    `);
}