Skip to content

Commit

Permalink
Merge pull request #15 from ut-code/front-profile
Browse files Browse the repository at this point in the history
不要な部分を削除
  • Loading branch information
KaichiManabe authored May 2, 2024
2 parents d0922db + ca52911 commit dedab08
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 294 deletions.
115 changes: 0 additions & 115 deletions front/src/app/(tabs)/log_in.tsx

This file was deleted.

56 changes: 5 additions & 51 deletions front/src/app/(tabs)/login.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
import { Link } from "expo-router";
import { GoogleAuthProvider, signInWithPopup } from "firebase/auth";
import { useState } from "react";
import {
View,
Text,
TextInput,
TouchableOpacity,
StyleSheet,
} from "react-native";
import { View, Text, StyleSheet } from "react-native";

import Button from "../../components/Button";
import { auth } from "../../firebase/firebaseconfig";
Expand Down Expand Up @@ -41,58 +33,20 @@ const handlePress = (): void => {
};

const LogIn = (): JSX.Element => {
const [userName, setUserName] = useState("");
const [email, setEmail] = useState("");
const [password, setPassword] = useState("");
return (
<View style={styles.container}>
<View style={styles.inner}>
<Text style={styles.title}>Log In</Text>
<TextInput
style={styles.input}
value={userName}
onChangeText={(text) => {
setUserName(text);
}}
keyboardType="default"
placeholder="User Name"
textContentType="username"
/>
<TextInput
style={styles.input}
value={email}
onChangeText={(text) => {
setEmail(text);
}}
autoCapitalize="none"
keyboardType="email-address"
placeholder="Email"
textContentType="emailAddress"
/>
<TextInput
style={styles.input}
value={password}
onChangeText={(text) => {
setPassword(text);
}}
autoCapitalize="none"
secureTextEntry
placeholder="Password"
textContentType="password"
/>
<Button
label="Submit"
label="Log In"
onPress={() => {
handlePress();
}}
/>
<View style={styles.footer}>
<Text style={styles.footerText}>Not registered?</Text>
<Link href="/sign_up" asChild>
<TouchableOpacity>
<Text style={styles.footerLink}>Sign Up here!</Text>
</TouchableOpacity>
</Link>
<Text style={styles.footerText}>
東京大学のGoogleアカウントを用いてログインしてください
</Text>
</View>
</View>
</View>
Expand Down
128 changes: 0 additions & 128 deletions front/src/app/(tabs)/sign_up.tsx

This file was deleted.

0 comments on commit dedab08

Please sign in to comment.