tokenRefresh, crear y editar productos con img funcionando
This commit is contained in:
@@ -3,7 +3,7 @@ import { EditInventory } from "../schemas/inventory";
|
||||
import { updateUserAction, createProductAction, updateUserAction2 } from "../actions/actions";
|
||||
|
||||
// Create mutation
|
||||
export function useCreateUser() {
|
||||
export function useCreateProduct() {
|
||||
const queryClient = useQueryClient();
|
||||
const mutation = useMutation({
|
||||
mutationFn: (data: any) => createProductAction(data),
|
||||
@@ -13,7 +13,7 @@ export function useCreateUser() {
|
||||
}
|
||||
|
||||
// Update mutation
|
||||
export function useUpdateUser() {
|
||||
export function useUpdateProduct() {
|
||||
const queryClient = useQueryClient();
|
||||
const mutation = useMutation({
|
||||
// mutationFn: (data: EditInventory) => updateUserAction(data),
|
||||
|
||||
Reference in New Issue
Block a user