fix(lint&types): resolve all lint warnings, typecheck errors and effect state updates across frontend application and admin panel
This commit is contained in:
1 parent
920dd532e8
commit
c1b2f416ed
29 files changed
+442
-352
No files matched your search
@@ -3,6 +3,12 @@ export const toPersian = (n: number | string | undefined | null) => {
|
||||
return n.toString().replace(/\d/g, d => '۰۱۲۳۴۵۶۷۸۹'[parseInt(d)]);
|
||||
};
|
||||
|
||||
export const toEnglishDigits = (str: string) => {
|
||||
if (!str) return "";
|
||||
return str.replace(/[۰-۹]/g, d => '۰۱۲۳۴۵۶۷۸۹'.indexOf(d).toString());
|
||||
};
|
||||
|
||||
export function cn(...classes: (string | boolean | undefined)[]) {
|
||||
return classes.filter(Boolean).join(" ");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user