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 { useAuth, useUser } from "@clerk/clerk-expo";
|
||||||
import * as Location from "expo-location";
|
import * as Location from "expo-location";
|
||||||
import { router } from "expo-router";
|
import { Link, router } from "expo-router";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import {
|
import {
|
||||||
ActivityIndicator,
|
ActivityIndicator,
|
||||||
@@ -15,6 +15,7 @@ import { SafeAreaView } from "react-native-safe-area-context";
|
|||||||
import { GoogleTextInput } from "@/components/google-text-input";
|
import { GoogleTextInput } from "@/components/google-text-input";
|
||||||
import { Map } from "@/components/map";
|
import { Map } from "@/components/map";
|
||||||
import { RideCard } from "@/components/ride-card";
|
import { RideCard } from "@/components/ride-card";
|
||||||
|
import { LINKS } from "@/config";
|
||||||
import { icons, images } from "@/constants";
|
import { icons, images } from "@/constants";
|
||||||
import { useLocationStore } from "@/store";
|
import { useLocationStore } from "@/store";
|
||||||
import { useFetch } from "@/lib/fetch";
|
import { useFetch } from "@/lib/fetch";
|
||||||
@@ -108,6 +109,20 @@ const Home = () => {
|
|||||||
{user?.firstName || user?.emailAddresses[0].emailAddress} 👋
|
{user?.firstName || user?.emailAddresses[0].emailAddress} 👋
|
||||||
</Text>
|
</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
|
<TouchableOpacity
|
||||||
onPress={handleSignOut}
|
onPress={handleSignOut}
|
||||||
className="justify-center items-center w-10 h-10 rounded-full bg-white"
|
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" />
|
<Image source={icons.out} className="w-4 h-4" alt="Logout" />
|
||||||
</TouchableOpacity>
|
</TouchableOpacity>
|
||||||
</View>
|
</View>
|
||||||
|
</View>
|
||||||
|
|
||||||
<GoogleTextInput
|
<GoogleTextInput
|
||||||
icon={icons.search}
|
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 dollar from "@/assets/icons/dollar.png";
|
||||||
import email from "@/assets/icons/email.png";
|
import email from "@/assets/icons/email.png";
|
||||||
import eyecross from "@/assets/icons/eyecross.png";
|
import eyecross from "@/assets/icons/eyecross.png";
|
||||||
|
import github from "@/assets/icons/github.png";
|
||||||
import google from "@/assets/icons/google.png";
|
import google from "@/assets/icons/google.png";
|
||||||
import home from "@/assets/icons/home.png";
|
import home from "@/assets/icons/home.png";
|
||||||
import list from "@/assets/icons/list.png";
|
import list from "@/assets/icons/list.png";
|
||||||
@@ -53,6 +54,7 @@ export const icons = {
|
|||||||
dollar,
|
dollar,
|
||||||
email,
|
email,
|
||||||
eyecross,
|
eyecross,
|
||||||
|
github,
|
||||||
google,
|
google,
|
||||||
home,
|
home,
|
||||||
list,
|
list,
|
||||||
|
|||||||
Reference in New Issue
Block a user