source code link added

This commit is contained in:
Sanidhya Kumar Verma
2024-09-04 12:58:27 +00:00
committed by GitHub
parent 2a0e9a79dc
commit 7894ff18aa
4 changed files with 28 additions and 7 deletions
+23 -7
View File
@@ -1,6 +1,6 @@
import { useAuth, useUser } from "@clerk/clerk-expo";
import * as Location from "expo-location";
import { router } from "expo-router";
import { Link, router } from "expo-router";
import { useEffect, useState } from "react";
import {
ActivityIndicator,
@@ -15,6 +15,7 @@ import { SafeAreaView } from "react-native-safe-area-context";
import { GoogleTextInput } from "@/components/google-text-input";
import { Map } from "@/components/map";
import { RideCard } from "@/components/ride-card";
import { LINKS } from "@/config";
import { icons, images } from "@/constants";
import { useLocationStore } from "@/store";
import { useFetch } from "@/lib/fetch";
@@ -108,12 +109,27 @@ const Home = () => {
{user?.firstName || user?.emailAddresses[0].emailAddress} 👋
</Text>
<TouchableOpacity
onPress={handleSignOut}
className="justify-center items-center w-10 h-10 rounded-full bg-white"
>
<Image source={icons.out} className="w-4 h-4" alt="Logout" />
</TouchableOpacity>
<View className="flex flex-row items-center gap-x-1">
<Link
href={LINKS.sourceCode}
target="_blank"
rel="noreferrer noopener"
className="justify-center items-center w-10 h-10"
>
<Image
source={icons.github}
className="w-6 h-6"
alt="GitHub"
/>
</Link>
<TouchableOpacity
onPress={handleSignOut}
className="justify-center items-center w-10 h-10 rounded-full bg-white"
>
<Image source={icons.out} className="w-4 h-4" alt="Logout" />
</TouchableOpacity>
</View>
</View>
<GoogleTextInput
Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

+3
View File
@@ -0,0 +1,3 @@
export const LINKS = {
sourceCode: "https://github.com/sanidhyy/uber-clone",
} as const;
+2
View File
@@ -7,6 +7,7 @@ import close from "@/assets/icons/close.png";
import dollar from "@/assets/icons/dollar.png";
import email from "@/assets/icons/email.png";
import eyecross from "@/assets/icons/eyecross.png";
import github from "@/assets/icons/github.png";
import google from "@/assets/icons/google.png";
import home from "@/assets/icons/home.png";
import list from "@/assets/icons/list.png";
@@ -53,6 +54,7 @@ export const icons = {
dollar,
email,
eyecross,
github,
google,
home,
list,