oauth component ui created
This commit is contained in:
committed by
GitHub
parent
de8ca40dcf
commit
f93e06c632
@@ -1,10 +1,11 @@
|
||||
import { Link } from "expo-router";
|
||||
import { useState } from "react";
|
||||
import { Image, ScrollView, Text, View } from "react-native";
|
||||
|
||||
import { InputField } from "@/components/input-field";
|
||||
import { icons, images } from "@/constants";
|
||||
import { CustomButton } from "@/components/custom-button";
|
||||
import { Link } from "expo-router";
|
||||
import { InputField } from "@/components/input-field";
|
||||
import { OAuth } from "@/components/oauth";
|
||||
import { icons, images } from "@/constants";
|
||||
|
||||
const SignUp = () => {
|
||||
const [form, setForm] = useState({
|
||||
@@ -78,7 +79,7 @@ const SignUp = () => {
|
||||
className="mt-6"
|
||||
/>
|
||||
|
||||
{/* OAuth */}
|
||||
<OAuth />
|
||||
|
||||
<Link
|
||||
href="/sign-in"
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
import { Image, Text, View } from "react-native";
|
||||
|
||||
import { icons } from "@/constants";
|
||||
|
||||
import { CustomButton } from "./custom-button";
|
||||
|
||||
export const OAuth = () => {
|
||||
const handleGoogleSignIn = () => {};
|
||||
|
||||
return (
|
||||
<View>
|
||||
<View className="flex flex-row justify-center items-center mt-4 gap-x-3">
|
||||
<View className="flex-1 h-px bg-general-100" />
|
||||
|
||||
<Text className="text-lg">Or</Text>
|
||||
|
||||
<View className="flex-1 h-px bg-general-100" />
|
||||
</View>
|
||||
|
||||
<CustomButton
|
||||
title="Log in with Google"
|
||||
className="mt-5 w-full shadow-none"
|
||||
iconLeft={() => (
|
||||
<Image
|
||||
source={icons.google}
|
||||
alt="Google logo"
|
||||
resizeMode="contain"
|
||||
className="h-5 w-5 mx-2"
|
||||
/>
|
||||
)}
|
||||
bgVariant="outline"
|
||||
textVariant="primary"
|
||||
onPress={handleGoogleSignIn}
|
||||
/>
|
||||
</View>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user