Commit 98f3aef8 authored by Shahzad Bhatti's avatar Shahzad Bhatti

minor changes

parent 86e31647
...@@ -57,21 +57,18 @@ const Cart = () => { ...@@ -57,21 +57,18 @@ const Cart = () => {
const styles = StyleSheet.create({ const styles = StyleSheet.create({
cartContiner: { cartContiner: {
// flex: 1, flex: 1,
}, },
itemContainer: { itemContainer: {
// flex: 0.5,
padding: 10, padding: 10,
// flexDirection: 'row', flexDirection: 'row',
// justifyContent: 'flex-start', justifyContent: 'flex-start',
}, },
imageContainer: { imageContainer: {
flex: 1, flex: 1,
backgroundColor: 'blue',
}, },
detailContainer: { detailContainer: {
flex: 3, flex: 3,
backgroundColor: '#ccc',
}, },
title: { title: {
fontSize: 20, fontSize: 20,
...@@ -97,8 +94,8 @@ const styles = StyleSheet.create({ ...@@ -97,8 +94,8 @@ const styles = StyleSheet.create({
color: '#888', color: '#888',
}, },
image: { image: {
width: 80, width: 40,
height: 80, height: 40,
}, },
price: { price: {
fontSize: 14, fontSize: 14,
......
...@@ -8,7 +8,6 @@ import Field from '../ui/Field'; ...@@ -8,7 +8,6 @@ import Field from '../ui/Field';
import {useNavigation} from '@react-navigation/native'; import {useNavigation} from '@react-navigation/native';
import {googleLogin, login} from '../../util/auth'; import {googleLogin, login} from '../../util/auth';
import {AuthContext} from '../../store/AuthContext'; import {AuthContext} from '../../store/AuthContext';
// import Button from '../ui/Button';
import {GoogleSignin} from '@react-native-google-signin/google-signin'; import {GoogleSignin} from '@react-native-google-signin/google-signin';
const Login = () => { const Login = () => {
...@@ -27,9 +26,8 @@ const Login = () => { ...@@ -27,9 +26,8 @@ const Login = () => {
console.log(error); console.log(error);
Alert.alert('Signup Failed', 'Something went wrong!'); Alert.alert('Signup Failed', 'Something went wrong!');
} }
// navigation.navigate('MedicineList');
// Alert.alert('Logged In', `you are login as ${email} with ${password}`);
}; };
const googleLoginHandler = async () => { const googleLoginHandler = async () => {
try { try {
const res = await googleLogin(); const res = await googleLogin();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment