@@ -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 ) ( {
@@ -56,6 +57,7 @@ const OutputLayout = styled("div")(({ theme }) => ({
5657function EditorComponent ( ) {
5758 const [ code , setCode ] = useState ( null ) ;
5859 const [ output , setOutput ] = useState ( [ ] ) ;
60+
5961 const [ currentLanguage , setCurrentLanguage ] = useState (
6062 LANGUAGES [ 0 ] . DEFAULT_LANGUAGE
6163 ) ;
@@ -287,6 +289,8 @@ function EditorComponent() {
287289 } } >
288290 < h2 > Please sign in to use the Code Editor</ h2 >
289291 < GoogleSignIn />
292+ < br />
293+ < GithubSignIn />
290294 </ div >
291295 ) ;
292296
@@ -343,7 +347,10 @@ function EditorComponent() {
343347 </ div >
344348 </ >
345349 ) : (
350+ < >
346351 < GoogleSignIn />
352+ < GithubSignIn />
353+ </ >
347354 ) }
348355 </ div >
349356 < ToggleTheme />
0 commit comments