before merge
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { useInfiniteQuery, useMutation, useQuery } from '@tanstack/react-query';
|
||||
import { fetchAuctionItem, fetchCityDropdown, fetchDashboard, fetchEmdCheck, fetchLiveAuction, fetchLiveTender, fetchMasterData, fetchPurchaseAuction, fetchPurchaseTender, fetchTenderById, getDesignation, getRagistrationState, offlineAuctionPurchase, offlineTenderPurchase, proceedToBid, registerContractor, sendAadhaarOtp, userAuctionLogin, userLogin, verifyAadhaarOtp, verifyGstNumber, verifyPanHandler } from './apis';
|
||||
import { contractorStageThreeSubmit, contractorStageTwoSubmit, fetchAuctionItem, fetchCityDropdown, fetchDashboard, fetchEmdCheck, fetchLiveAuction, fetchLiveTender, fetchMasterData, fetchPurchaseAuction, fetchPurchaseTender, fetchTenderById, getDesignation, getRagistrationState, offlineAuctionPurchase, offlineTenderPurchase, partnerShipSubmit, proceedToBid, registerContractor, sendAadhaarOtp, submitEnvelopeA, submitEnvelopeB, uploadEnvelopeFile, userAuctionLogin, userLogin, verifyAadhaarOtp, verifyGstNumber, verifyPanHandler } from './apis';
|
||||
import { apiCall } from '../../Axios/Axios';
|
||||
|
||||
// User
|
||||
@@ -171,9 +171,9 @@ export const usefetchMasterData = () => {
|
||||
});
|
||||
}
|
||||
|
||||
export const useCityDropdown = (stateId?: number) => {
|
||||
export const useCityDropdown = () => {
|
||||
return useMutation({
|
||||
mutationFn: () => fetchCityDropdown(stateId as number),
|
||||
mutationFn: (stateId: number) => fetchCityDropdown(stateId),
|
||||
});
|
||||
};
|
||||
|
||||
@@ -196,4 +196,41 @@ export const useVerifyPan = () =>
|
||||
export const useVerifyGstNumber = () =>
|
||||
useMutation({
|
||||
mutationFn: verifyGstNumber,
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
export const useContractorStageTwoSubmit = () =>
|
||||
useMutation({
|
||||
mutationFn: contractorStageTwoSubmit,
|
||||
});
|
||||
|
||||
export const useContractorStageThreeSubmit = () =>
|
||||
useMutation({
|
||||
mutationFn: contractorStageThreeSubmit,
|
||||
});
|
||||
|
||||
export const usePartnerShipSubmit = () =>
|
||||
useMutation({
|
||||
mutationFn: partnerShipSubmit,
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
export const useSubmitEnvelopeA = () =>
|
||||
useMutation({
|
||||
mutationFn: submitEnvelopeA,
|
||||
})
|
||||
|
||||
export const useSubmitEnvelopeB = () =>
|
||||
useMutation({
|
||||
mutationFn: submitEnvelopeB,
|
||||
})
|
||||
|
||||
export const useUploadEnvelopeFile = () =>
|
||||
useMutation({
|
||||
mutationFn: uploadEnvelopeFile,
|
||||
})
|
||||
|
||||
|
||||
@@ -319,4 +319,6 @@ export const uploadEnvelopeFile = async ({
|
||||
})
|
||||
|
||||
return data
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user