source code link added
This commit is contained in:
committed by
GitHub
parent
2a0e9a79dc
commit
7894ff18aa
@@ -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,6 +109,20 @@ const Home = () => {
|
||||
{user?.firstName || user?.emailAddresses[0].emailAddress} 👋
|
||||
</Text>
|
||||
|
||||
<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"
|
||||
@@ -115,6 +130,7 @@ const Home = () => {
|
||||
<Image source={icons.out} className="w-4 h-4" alt="Logout" />
|
||||
</TouchableOpacity>
|
||||
</View>
|
||||
</View>
|
||||
|
||||
<GoogleTextInput
|
||||
icon={icons.search}
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 6.2 KiB |
@@ -0,0 +1,3 @@
|
||||
export const LINKS = {
|
||||
sourceCode: "https://github.com/sanidhyy/uber-clone",
|
||||
} as const;
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user