typo fixes and code improvements

This commit is contained in:
Sanidhya Kumar Verma
2024-09-04 12:01:27 +00:00
committed by GitHub
parent ac4019e5d1
commit 96d14cecad
7 changed files with 12 additions and 5 deletions
+1
View File
@@ -222,6 +222,7 @@ const SignUp = () => {
<View className="bg-white px-7 py-9 rounded-2xl min-h-[300px]"> <View className="bg-white px-7 py-9 rounded-2xl min-h-[300px]">
<Image <Image
source={images.check} source={images.check}
alt="Check"
className="w-[110px] h-[110px] mx-auto my-5" className="w-[110px] h-[110px] mx-auto my-5"
/> />
+3
View File
@@ -8,6 +8,7 @@ const Chat = () => {
<SafeAreaView className="flex-1 bg-white p-5"> <SafeAreaView className="flex-1 bg-white p-5">
<ScrollView contentContainerStyle={{ flexGrow: 1 }}> <ScrollView contentContainerStyle={{ flexGrow: 1 }}>
<Text className="text-2xl font-JakartaBold">Chat</Text> <Text className="text-2xl font-JakartaBold">Chat</Text>
<View className="flex-1 h-fit flex justify-center items-center"> <View className="flex-1 h-fit flex justify-center items-center">
<Image <Image
source={images.message} source={images.message}
@@ -15,9 +16,11 @@ const Chat = () => {
className="w-full h-40" className="w-full h-40"
resizeMode="contain" resizeMode="contain"
/> />
<Text className="text-3xl font-JakartaBold mt-3"> <Text className="text-3xl font-JakartaBold mt-3">
No Messages Yet No Messages Yet
</Text> </Text>
<Text className="text-base mt-2 text-center px-7"> <Text className="text-base mt-2 text-center px-7">
Start a conversation with your friends and family Start a conversation with your friends and family
</Text> </Text>
+2 -1
View File
@@ -13,13 +13,14 @@ const Profile = () => {
className="px-5" className="px-5"
contentContainerStyle={{ paddingBottom: 120 }} contentContainerStyle={{ paddingBottom: 120 }}
> >
<Text className="text-2xl font-JakartaBold my-5">My profile</Text> <Text className="text-2xl font-JakartaBold my-5">My Profile</Text>
<View className="flex items-center justify-center my-5"> <View className="flex items-center justify-center my-5">
<Image <Image
source={{ source={{
uri: user?.externalAccounts[0]?.imageUrl ?? user?.imageUrl, uri: user?.externalAccounts[0]?.imageUrl ?? user?.imageUrl,
}} }}
alt="Your Avatar"
style={{ width: 110, height: 110, borderRadius: 110 / 2 }} style={{ width: 110, height: 110, borderRadius: 110 / 2 }}
className=" rounded-full h-[110px] w-[110px] border-[3px] border-white shadow-sm shadow-neutral-300" className=" rounded-full h-[110px] w-[110px] border-[3px] border-white shadow-sm shadow-neutral-300"
/> />
+2 -2
View File
@@ -84,7 +84,7 @@ const BookRide = () => {
<View className="flex flex-col w-full items-start justify-center mt-5"> <View className="flex flex-col w-full items-start justify-center mt-5">
<View className="flex flex-row items-center justify-start mt-3 border-t border-b border-general-700 w-full py-3"> <View className="flex flex-row items-center justify-start mt-3 border-t border-b border-general-700 w-full py-3">
<Image source={icons.to} className="w-6 h-6" /> <Image source={icons.to} alt="To" className="w-6 h-6" />
<Text className="text-lg font-JakartaRegular ml-2"> <Text className="text-lg font-JakartaRegular ml-2">
{userAddress} {userAddress}
@@ -92,7 +92,7 @@ const BookRide = () => {
</View> </View>
<View className="flex flex-row items-center justify-start border-b border-general-700 w-full py-3"> <View className="flex flex-row items-center justify-start border-b border-general-700 w-full py-3">
<Image source={icons.point} className="w-6 h-6" /> <Image source={icons.point} alt="Point" className="w-6 h-6" />
<Text className="text-lg font-JakartaRegular ml-2"> <Text className="text-lg font-JakartaRegular ml-2">
{destinationAddress} {destinationAddress}
+1
View File
@@ -77,6 +77,7 @@ export const GoogleTextInput = ({
> >
<Image <Image
source={icon ? icon : icons.search} source={icon ? icon : icons.search}
alt="Search"
className="w-6 h-6" className="w-6 h-6"
resizeMode="contain" resizeMode="contain"
/> />
+2 -2
View File
@@ -1,12 +1,12 @@
import { useOAuth } from "@clerk/clerk-expo"; import { useOAuth } from "@clerk/clerk-expo";
import { router } from "expo-router";
import { useCallback } from "react"; import { useCallback } from "react";
import { Image, Text, View } from "react-native"; import { Image, Text, View } from "react-native";
import { icons } from "@/constants"; import { icons } from "@/constants";
import { googleOAuth } from "@/lib/auth";
import { CustomButton } from "./custom-button"; import { CustomButton } from "./custom-button";
import { googleOAuth } from "@/lib/auth";
import { router } from "expo-router";
type OAuthProps = { type OAuthProps = {
title: string; title: string;
+1
View File
@@ -24,6 +24,7 @@ export const RideCard = ({ ride }: { ride: Ride }) => {
source={{ source={{
uri: `https://maps.geoapify.com/v1/staticmap?style=osm-bright&width=600&height=400&center=lonlat:${destination_longitude},${destination_latitude}&zoom=14&apiKey=${process.env.EXPO_PUBLIC_GEOAPIFY_API_KEY}`, uri: `https://maps.geoapify.com/v1/staticmap?style=osm-bright&width=600&height=400&center=lonlat:${destination_longitude},${destination_latitude}&zoom=14&apiKey=${process.env.EXPO_PUBLIC_GEOAPIFY_API_KEY}`,
}} }}
alt="Map"
className="w-[80px] h-[90px] rounded-lg" className="w-[80px] h-[90px] rounded-lg"
/> />