@@ -6,6 +6,8 @@ import Box from "@mui/material/Box";
66import { useSnackbar } from "notistack" ;
77import React , { useCallback , useEffect , useRef , useState } from "react" ;
88import { FaPlay } from "react-icons/fa" ;
9+ import GithubSignIn from "../components/GithubSignIn" ;
10+ import GoogleSignIn from "../components/GoogleSignIn" ;
911import "../components/css/EditorComponent.css" ;
1012import EditorThemeSelect from "../components/js/EditorThemeSelect" ;
1113import LanguageSelect from "../components/js/LanguageSelect" ;
@@ -19,7 +21,6 @@ import {
1921 rapidApiHost ,
2022 rapidApiKey ,
2123} from "../constants/constants" ;
22- import GoogleSignIn from "../components/GoogleSignIn" ;
2324import { useAuth } from "../context/AuthContext" ;
2425
2526const StyledButton = styled ( Button ) ( {
@@ -61,6 +62,7 @@ const WelcomeText = styled("span")(({ theme }) => ({
6162function EditorComponent ( ) {
6263 const [ code , setCode ] = useState ( null ) ;
6364 const [ output , setOutput ] = useState ( [ ] ) ;
65+
6466 const [ currentLanguage , setCurrentLanguage ] = useState (
6567 LANGUAGES [ 0 ] . DEFAULT_LANGUAGE
6668 ) ;
@@ -294,6 +296,8 @@ function EditorComponent() {
294296 >
295297 < h2 > Please sign in to use the Code Editor</ h2 >
296298 < GoogleSignIn />
299+ < br />
300+ < GithubSignIn />
297301 </ div >
298302 ) ;
299303
@@ -355,7 +359,10 @@ function EditorComponent() {
355359 </ div >
356360 </ >
357361 ) : (
362+ < >
358363 < GoogleSignIn />
364+ < GithubSignIn />
365+ </ >
359366 ) }
360367 </ div >
361368 < ToggleTheme />
0 commit comments