fix fetch lista de invitados

This commit is contained in:
Maria Sanchez 2022-09-01 11:15:51 -06:00
parent c0adddd2ce
commit 8ef998a771
4 changed files with 5 additions and 5 deletions

View File

@ -56,7 +56,7 @@ function HomeTabGuarda({ route }) {
backgroundColor: "#D7A86E"
}, tabBarIcon: () => (<Icon mb="2" as={<MaterialCommunityIcons name={selected === 0 ? 'home' : 'home-outline'} />} color="#D7A86E" size="md" />)}} onclick={() => setSelected(0)}
/>
<Tab.Screen name="Mis Invitados" component={Invitados} initialParams={user} options={{headerStyle: {
<Tab.Screen name="Lista De Invitados" component={Invitados} initialParams={user} options={{headerStyle: {
backgroundColor: "#D7A86E"
}, tabBarIcon: () => (<Icon mb="2" as={<MaterialCommunityIcons name={selected === 1 ? 'contacts' : 'contacts-outline'} />} color="#D7A86E" size="md" />)} } onclick={() => setSelected(1)} />
<Tab.Screen name="Mi Perfil" component={Profile} initialParams={user} options={{headerStyle: {

View File

@ -149,7 +149,7 @@ export default function AreaComun({navigation}){
<FormControl isRequired>
<FormControl.Label>Hora de inicio</FormControl.Label>
<View >
<DateTimePicker minimumDate={date} mode="datetime" is24Hour value={time} onChange={onChangeStart}/>
<DateTimePicker minimumDate={date} mode="datetime" is24Hour={true} value={time} onChange={onChangeStart}/>
</View>
</FormControl>

View File

@ -27,7 +27,7 @@ export default function Invitados({navigation}) {
setIsRequesting(true);
try {
if(user_type=="4"){
if(user_type=="3"){
const jsonResponse = await fetch(`${API.BASE_URL}/guest/findGuestCommunity/`+`${community_id}`, {
method: "GET",
headers: {
@ -37,7 +37,7 @@ export default function Invitados({navigation}) {
const response = await jsonResponse.json();
setInvitados(response.message);
}else{
}else if(user_type=="4"){
const jsonResponse = await fetch(`${API.BASE_URL}/guest/findGuestUser/`+`${id}`, {
method: "GET",
headers: {

View File

@ -92,7 +92,7 @@ export default function LogIn({ navigation }) {
navigation.navigate('Comunicados', {user})
}else if(user.user_type == '3'){
addUser(user);
// cambiar por ComunicadosGuarda luego
// cambiar por Comunicados Guarda luego
navigation.navigate('Comunicados', {user})
}
}else{