Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
);
}
export default compose(
withCrud({
list: {
get: {
query: loadMenus,
variables: { sort: { savedOn: -1 } },
response: data => get(data, "pageBuilder.menus")
},
delete: {
mutation: deleteMenu,
response: data => data.pageBuilder.deleteMenu,
snackbar: data => t`Menu {name} deleted.`({ name: data.name })
}
},
form: {
get: {
query: loadMenu,
response: data => get(data, "pageBuilder.menu")
return (
);
};
export default compose(
withCrud({
list: {
get: {
query: loadUsers,
variables: { sort: { savedOn: -1 } },
response: data => get(data, "security.users")
},
delete: {
mutation: deleteUser,
response: data => data.security.deleteUser,
snackbar: data => t`User {name} deleted.`({ name: data.fullName })
}
},
form: {
get: {
query: loadUser,
response: data => get(data, "security.user")