before merge

This commit is contained in:
Abin Toppo
2026-01-12 17:46:53 +05:30
parent 061224afe3
commit 3c35a879b1
4 changed files with 55 additions and 12 deletions
+4 -2
View File
@@ -18,6 +18,7 @@ import PrimaryButton from '../../Component/PrimaryButton/PrimaryButton';
import MyInput from '../../Component/MyInput';
import { showToast } from '../../Constant/ShowDailog';
import { STAGETHREE } from '../../Services/BBPS/ApiUrls';
import { useContractorStageThreeSubmit } from '../../Services/BBPS/Hooks';
type Company = {
@@ -49,7 +50,8 @@ const StageThreeScreen = () => {
const [focusedField, setFocusedField] = useState<string | null>(null);
const [loading, setLoading] = useState<boolean>(false);
const { mutateAsync: stageThreeSubmit } = useContractorStageThreeSubmit();
const handleChange = (index: number, field: keyof Company, value: string) => {
const updated = [...company];
updated[index][field] = value;
@@ -83,7 +85,7 @@ const StageThreeScreen = () => {
}));
console.log('stage 3 payload : ', payload);
// const response = await apiCallForPostWithToken (STAGETHREE, payload);
const response = await stageThreeSubmit(payload);
console.log('✅ company submitted successfully:', response);
if (response.statusCode === 200 || response.statusCode === 201) {
@@ -16,7 +16,7 @@ import { pick, types } from '@react-native-documents/picker';
import { InsideHeader } from '../../../Component/Index';
import colors from '../../../Constant/Color';
import { SUBMIT_ENVELOPE_A, SUBMIT_ENVELOPE_B, SUBMIT_ENVELOPE_FILE_A, SUBMIT_ENVELOPE_FILE_B } from '../../../Services/BBPS/ApiUrls';
import { Fontisto } from '@react-native-vector-icons/fontisto';
import { CheckSquare, Square } from 'lucide-react-native';
import { apiCall } from '../../../Axios/Axios';
type EnvelopeType = 'A' | 'B' | 'C';
@@ -359,7 +359,7 @@ const TenderBidding = () => {
const res = await apiCall('post',SUBMIT_ENVELOPE_A, payload)
console.log("res A envelop : ", res)
ToastAndroid.show(res.message, ToastAndroid.SHORT)
ToastAndroid.show(res?.message, ToastAndroid.SHORT)
navigation.goBack()
@@ -493,9 +493,11 @@ const TenderBidding = () => {
/>
<View style={[styles.infoRow, { flexDirection: 'row', gap: 10 }]}>
<TouchableOpacity onPress={() => setCheck(!check)}>
{check ? <Fontisto name="checkbox-active" size={24} color={colors.primary} /> :
<Fontisto name="checkbox-passive" size={24} color={colors.primary} />
}</TouchableOpacity>
{check ? (
<CheckSquare size={24} color={colors.primary} />
) : (
<Square size={24} color={colors.primary} />
)}</TouchableOpacity>
<Text>Check First Terms&Condition</Text>
</View>
</View>