feat: Initial setup of theme.

This commit is contained in:
vikrant k
2022-01-13 22:28:45 +05:30
parent aaa083c184
commit fd2d9fa882
371 changed files with 17971 additions and 100 deletions

17
src/services/Utils.js Normal file
View File

@@ -0,0 +1,17 @@
import _ from 'underscore';
export const getErrorValue = (data, type) => {
try {
return _.omit(data, type);
} catch {
return data;
}
};
export const getFetchingValue = (data, type) => {
try {
return _.without(data, type);
} catch (error) {
return data;
}
};