@@ -16,7 +16,7 @@ export const SignUp = ({setAction, setError}) => {
16
16
const [ userEmail , setUserEmail ] = useState ( "" ) ;
17
17
const [ userPassword , setUserPassword ] = useState ( "" ) ;
18
18
const [ userName , setUserName ] = useState ( "" ) ;
19
- const [ preferredLang , setPreferredLang ] = useState ( "" ) ;
19
+ const [ preferredLang , setPreferredLang ] = useState ( "python " ) ;
20
20
21
21
const isEmpty = ( str ) => {
22
22
return str === "" ;
@@ -83,25 +83,17 @@ export const SignUp = ({setAction, setError}) => {
83
83
/>
84
84
</ div >
85
85
< div className = "input" >
86
- { /* <input
87
- type="text"
88
- placeholder="Preferred programming language"
89
- onChange={(e) => {
90
- setPreferredLang(e.target.value);
91
- }}
92
- value={preferredLang}
93
- /> */ }
94
86
< select
95
87
value = { preferredLang . toLowerCase ( ) }
96
88
onChange = { ( e ) => {
97
89
setPreferredLang ( e . target . value ) ;
98
90
} }
99
91
className = "signup-language-dropdown"
100
92
>
101
- < option value = "python " > Python</ option >
102
- < option value = "cpp " > C++</ option >
103
- < option value = "java " > Java</ option >
104
- < option value = "javascript " > Javascript</ option >
93
+ < option value = "Python " > Python</ option >
94
+ < option value = "C++ " > C++</ option >
95
+ < option value = "Java " > Java</ option >
96
+ < option value = "Javascript " > Javascript</ option >
105
97
</ select >
106
98
</ div >
107
99
</ div >
0 commit comments