deposite api changes
This commit is contained in:
@@ -126,7 +126,7 @@ const Dashbaord = () => {
|
||||
<Icon position={'absolute'} right={6} bottom={6} boxSize={12} as={PiChartLineUpDuotone} />
|
||||
</Box>
|
||||
</Box>
|
||||
<Box h={'45%'} display={'flex'} pe={4} >
|
||||
<Box h={'330px'} display={'flex'} pe={4} >
|
||||
<Box w={'60%'} h={'100%'} p={4} pe={6} pt={1} >
|
||||
<Box position={'relative'} h={'100%'} boxShadow={'lg'} display={'flex'} justifyContent={'center'} rounded={'xl'} p={5} ps={0} pe={0}>
|
||||
<Text position={'absolute'} top={3} left={6} as={'span'} fontSize={'sm'}>Exchange rate currency</Text>
|
||||
|
||||
@@ -12,7 +12,7 @@ export const depositRequest = createApi({
|
||||
tagTypes: ["getDepositRequest"],
|
||||
endpoints: (builder) => ({
|
||||
getDepositRequest: builder.query({
|
||||
query: () => `/deposit/admin/getAll`,
|
||||
query: () => `/deposit/admin/pending-requests`,
|
||||
providesTags: ["getDepositRequest"],
|
||||
}),
|
||||
|
||||
@@ -22,7 +22,7 @@ export const depositRequest = createApi({
|
||||
|
||||
updateDepositRequest: builder.mutation({
|
||||
query: ({ id, data }) => ({
|
||||
url: `/deposit/admin/updateApprove/${id}`,
|
||||
url: `/deposit/admin/approved/${id}`,
|
||||
method: "PATCH",
|
||||
body: data,
|
||||
}),
|
||||
@@ -31,7 +31,7 @@ export const depositRequest = createApi({
|
||||
|
||||
depositReject: builder.mutation({
|
||||
query: ({ id, data }) => ({
|
||||
url: `/deposit/admin/updateReject/${id}`,
|
||||
url: `/deposit/admin/rejected/${id}`,
|
||||
method: "PATCH",
|
||||
body: data,
|
||||
}),
|
||||
@@ -39,7 +39,7 @@ export const depositRequest = createApi({
|
||||
}),
|
||||
|
||||
getDepositHistory: builder.query({
|
||||
query: () => `/deposit/admin/getAllHistory`,
|
||||
query: () => `/deposit/admin/history`,
|
||||
// providesTags: ["getDepositHistory"],
|
||||
}),
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user