Skip to content

Commit

Permalink
removed comments and cleaned up packages
Browse files Browse the repository at this point in the history
  • Loading branch information
sakshambhatt committed Jun 16, 2023
1 parent d93b589 commit 5db3612
Show file tree
Hide file tree
Showing 3 changed files with 334 additions and 127 deletions.
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
"@react-navigation/drawer": "^6.1.8",
"@react-navigation/native": "^6.0.8",
"@react-navigation/stack": "^6.2.0",
"@react-navigation/native": "^6.0.8",
"@react-navigation/stack": "^6.2.0",
"axios": "^0.26.0",
"eslint-plugin-prettier": "^4.1.0",
"react": "17.0.2",
Expand All @@ -30,7 +28,6 @@
"react-native-element-dropdown": "^2.0.0",
"react-native-floating-action": "^1.22.0",
"react-native-gesture-handler": "^1.10.3",
"react-native-gesture-handler": "^1.10.3",
"react-native-image-picker": "^4.7.1",
"react-native-paper": "^4.12.3",
"react-native-radio-buttons-group": "^2.2.11",
Expand Down
20 changes: 14 additions & 6 deletions src/screens/AuthScreen/AuthScreen.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@
import React, { useState } from 'react';
import React, { useContext, useState } from 'react';
import { Text, View, TouchableOpacity, Image, ScrollView } from 'react-native';
import Strings from '../../i18n/en';
import { AuthViewStyle } from './styles';
import { AuthScreenButton } from './Button';
import { OtpModal } from './OtpModal';
import { Toast } from 'react-native-toast-message/lib/src/Toast';
import { AuthContext } from '../../context/AuthContext';
import { getUserData } from './Util';
import { storeData } from '../../utils/dataStore';
import { SafeAreaView } from 'react-native-safe-area-context';
import { ActivityIndicator } from 'react-native';
import Images from '../../constants/images/Image';
import WebView from 'react-native-webview';
import { urls } from '../../constants/appConstant/url';

const AuthScreen = () => {
// TODO: will revamp github signIn feature
// const { setLoggedInUserData } = useContext(AuthContext);
// const [githubView, setGithubView] = useState<boolean>(false);
const { setLoggedInUserData } = useContext(AuthContext);
const [githubView, setGithubView] = useState<boolean>(false);
const [otpCode, setOtpCode] = useState<string>('');
const [otpModalVisible, setOtpModalVisible] = useState<boolean>(false);
// const [addressbarURL, setAdressbarURL] = useState<String>('');
// const [loading, setLoading] = useState(false);
// const [key, setKey] = useState(1);
const [addressbarURL, setAdressbarURL] = useState<String>('');
const [loading, setLoading] = useState(false);
const [key, setKey] = useState(1);

const closeModal = () => {
setOtpModalVisible(false);
Expand Down
Loading

0 comments on commit 5db3612

Please sign in to comment.