css and inquilino log in
This commit is contained in:
		
							parent
							
								
									77b0755a8e
								
							
						
					
					
						commit
						169585b32e
					
				| 
						 | 
					@ -73,11 +73,16 @@ const iniciarSesion = async()  => {
 | 
				
			||||||
    .then( response => {
 | 
					    .then( response => {
 | 
				
			||||||
       const user = response.message
 | 
					       const user = response.message
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if(user.user_type == '3'){
 | 
					 | 
				
			||||||
       cookies.set('id',user._id, {path: "/"} )
 | 
					       cookies.set('id',user._id, {path: "/"} )
 | 
				
			||||||
       cookies.set('name',user.name, {path: "/"} )
 | 
					       cookies.set('name',user.name, {path: "/"} )
 | 
				
			||||||
       cookies.set('email',user.email, {path: "/"} )
 | 
					       cookies.set('email',user.email, {path: "/"} )
 | 
				
			||||||
       cookies.set('type',user.user_type, {path: "/"} )
 | 
					       cookies.set('type',user.user_type, {path: "/"} )
 | 
				
			||||||
 | 
					        if(user.user_type == '3'){
 | 
				
			||||||
 | 
					          
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					          navigation.navigate('Comunicados')
 | 
				
			||||||
 | 
					        }else if(user.user_type == '4'){
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    })
 | 
					    })
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
| 
						 | 
					@ -127,20 +132,20 @@ export default function LogIn({navigation}) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<View style={styles.container}>
 | 
					<View style={styles.container}>
 | 
				
			||||||
  <VStack space={3} mt="5">
 | 
					  <VStack space={3} mt="5">
 | 
				
			||||||
            <FormControl>
 | 
					            <FormControl isRequired>
 | 
				
			||||||
              <FormControl.Label> Correo Electrónico </FormControl.Label>
 | 
					              <FormControl.Label> Correo Electrónico </FormControl.Label>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
              <View style={styles.viewSection}> 
 | 
					              <View style={styles.viewSection}> 
 | 
				
			||||||
              <Entypo name="email" size={20} color="grey" style={styles.iconStyle} />
 | 
					              <Entypo name="email" size={20} color="grey" style={styles.iconStyle} />
 | 
				
			||||||
              <TextInput type="text" style={styles.input} />
 | 
					              <TextInput type="text" style={styles.input} placeholder='Correo Electrónico' />
 | 
				
			||||||
              </View>
 | 
					              </View>
 | 
				
			||||||
              
 | 
					              
 | 
				
			||||||
            </FormControl>
 | 
					            </FormControl>
 | 
				
			||||||
            <FormControl>
 | 
					            <FormControl isRequired>
 | 
				
			||||||
            <FormControl.Label> Contraseña </FormControl.Label>
 | 
					            <FormControl.Label> Contraseña </FormControl.Label>
 | 
				
			||||||
                <View style={styles.viewSection}> 
 | 
					                <View style={styles.viewSection}> 
 | 
				
			||||||
                <MaterialCommunityIcons name="form-textbox-password" size={20} color="grey" style={styles.iconStyle}/>
 | 
					                <MaterialCommunityIcons name="form-textbox-password" size={20} color="grey" style={styles.iconStyle}/>
 | 
				
			||||||
                <TextInput type="password" style={styles.input} />
 | 
					                <TextInput type="password" style={styles.input} placeholder='Contraseña'/>
 | 
				
			||||||
                </View>
 | 
					                </View>
 | 
				
			||||||
              <Link
 | 
					              <Link
 | 
				
			||||||
                _text={{
 | 
					                _text={{
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue