Completed Change to ReactJS

This commit is contained in:
2024-09-02 14:28:35 +00:00
parent 953edb3d0c
commit 6264778ea0
89 changed files with 4190 additions and 3866 deletions

View File

@ -1,4 +1,3 @@
import { ROUTES } from '@routes/routes'
import { AES, enc } from 'crypto-js'
import { LOGIN_KEY, SECRET_KEY, STORE_KEY } from './enum'
@ -51,7 +50,11 @@ export class Helpers {
static clearObject = (object) => {
for (var propName in object) {
if (object[propName] === null || object[propName] === undefined) {
if (
object[propName] === null ||
object[propName] === undefined ||
object[propName] === ''
) {
delete object[propName]
}
}
@ -70,7 +73,4 @@ export class Helpers {
return array.length > 0 ? array : null
}
static getRoutePath = (pathName) =>
ROUTES.filter((r) => r.name === pathName)[0].path
}