some changes in ui

This commit is contained in:
rohit-kumar-fullstack
2026-01-14 13:36:43 +05:30
parent 26fc703df9
commit 40af63bc79
16 changed files with 209 additions and 185 deletions
@@ -18,7 +18,7 @@ const TemplateFormModal: React.FC<Props> = ({ visible, template, setAllBoolean }
const SelectedAuction = useSelector((state: any) => state.auction.auction)
const Navigation: any = useNavigation()
const [loading, setLoading] = useState(false)
const initialValues = template.labels.reduce((acc: any, label: any) => {
const initialValues = template?.labels?.reduce((acc: any, label: any) => {
acc[label.labelName] = ''
return acc
}, {})
@@ -150,7 +150,7 @@ const TemplateFormModal: React.FC<Props> = ({ visible, template, setAllBoolean }
([labelName, labelValue]: any) => {
if (typeof labelValue === 'object' && labelValue?.uri) {
hasFile = true
fileFormData.append(labelName, {
fileFormData.append('files', {
uri: labelValue.uri,
name: labelValue.name,
type: labelValue.type,
@@ -166,14 +166,13 @@ const TemplateFormModal: React.FC<Props> = ({ visible, template, setAllBoolean }
const rs1: any = await apiCall('post', TECHNICAL_VALUE_SUBMIT, jsonBody)
if (hasFile) {
fileFormData.append(
'auctiontId',
String(SelectedAuction.auctionId)
'auctionTemplateValueIds',
String(rs1?.data[0]?.valueId)
)
fileFormData.append(
'technicalDocumentTemplateId',
'templateNameId',
String(payload.templateNameId)
)
@@ -184,7 +183,7 @@ const TemplateFormModal: React.FC<Props> = ({ visible, template, setAllBoolean }
{},
'multipart/form-data'
)
console.log(res2, '-------------res2');
if (rs1.statusCode == 200 && res2.statusCode == 200) {
Navigation.navigate(NavigationString.StartBidding)
setAllBoolean((prev: any) => ({ ...prev, technicalDocModalVisible: false }))
@@ -397,7 +396,7 @@ const styles = StyleSheet.create({
submitRow: {
marginTop: 20,
alignItems: 'flex-end',
height:50
height: 50
},
submitBtn: {
backgroundColor: colors.primary,
+2 -6
View File
@@ -2,7 +2,6 @@ import React, { useEffect, useState } from 'react';
import { View, Text, FlatList, TouchableOpacity, StyleSheet, TextInput, Alert } from 'react-native';
import { pick } from '@react-native-documents/picker';
import Animated, { FadeInDown, FadeOutUp, Layout } from 'react-native-reanimated';
// import BouncyCheckbox from 'react-native-bouncy-checkbox';
import BouncyCheckbox from 'react-native-bouncy-checkbox';
import { InsideHeader, Loader, Skelton } from '../../Component/Index';
import colors from '../../Constant/Color';
@@ -16,7 +15,6 @@ import { AUCITON_SINGLE_EMD, AUCTION_ITEM_SUBMIT, CHECK_TECHNICAL_DOCUMENTAION,
import TemplateFormModal from './Component/TemplateFormModal';
import { SelectedItem } from './Type/BidType';
import FontsFamily from '../../Constant/FontsFamily';
import { all } from 'axios';
import { showSuccessAlert } from '../../Constant/ShowDailog';
@@ -94,14 +92,14 @@ const Emd = () => {
<Text style={styles.subText}>EMD ₹ {item.emdAmount}</Text>
</View>
{/* <BouncyCheckbox
<BouncyCheckbox
size={20}
fillColor={colors.primary}
iconStyle={{ borderRadius: 5, borderWidth: 1.5, borderColor: colors.primary }}
innerIconStyle={{ borderRadius: 6 }}
isChecked={selected}
onPress={(checked) => toggleSelect(item, checked)}
/> */}
/>
</View>
<Text style={styles.meta}>
@@ -232,7 +230,6 @@ const Emd = () => {
mutate({ auctionNumber: SelectedAuction.auctionNumber }, {
onSuccess: (async (res) => {
if (res.statusCode == 200) {
if (res.message == 'No EMD Documents') {
const result = await getAuction()
if (result) {
@@ -382,7 +379,6 @@ const Emd = () => {
};
useEffect(() => {
// getAuction()
AlreadyEmdCheck()
}, [])