11 lines
285 B
JavaScript
11 lines
285 B
JavaScript
import { createAsyncThunk } from "@reduxjs/toolkit";
|
|
import axios from "axios";
|
|
|
|
export const depositeAllocation = createAsyncThunk(
|
|
"DEPOSITE_ALLOCATION",
|
|
async (d) => {
|
|
const { data, status } = await axios.put(`deposit_allocation/0/`, d);
|
|
return { data, status };
|
|
}
|
|
);
|