chore: Use camel case

This commit is contained in:
iamsivin
2024-11-07 10:32:38 +05:30
parent 4b85a9045a
commit 314a33e053
9 changed files with 114 additions and 89 deletions
@@ -1,3 +1,5 @@
import camelcaseKeys from 'camelcase-keys';
export const getters = {
getContacts($state) {
return $state.sortOrder.map(contactId => $state.records[contactId]);
@@ -9,6 +11,10 @@ export const getters = {
const contact = $state.records[id];
return contact || {};
},
getContactById: $state => id => {
const contact = $state.records[id];
return camelcaseKeys(contact || {});
},
getMeta: $state => {
return $state.meta;
},