@@ -9,9 +9,9 @@ import { getStorage, ref, uploadBytesResumable, getDownloadURL } from 'firebase/
99import { getCookie } from '@/utils/request' ;
1010import { useEffect } from 'react' ;
1111
12- export default function General ( ) {
12+ export default function General ( ) {
1313 const router = useRouter ( ) ;
14-
14+
1515 const [ isPopupOpen , setIsPopupOpen ] = useState ( false ) ;
1616 const [ selectedImage , setSelectedImage ] = useState ( null ) ;
1717
@@ -27,7 +27,7 @@ export default function General(){
2727 function pfpChange ( ) {
2828 pfpChanged = true ;
2929 }
30-
30+
3131 const handlePopupOpen = ( ) => {
3232 setIsPopupOpen ( true ) ;
3333 }
@@ -38,7 +38,7 @@ export default function General(){
3838 // set username
3939 var xhr = new XMLHttpRequest ( ) ;
4040
41- xhr . addEventListener ( 'readystatechange' , function ( ) {
41+ xhr . addEventListener ( 'readystatechange' , function ( ) {
4242 if ( this . readyState === 4 ) {
4343 console . log ( this . responseText ) ;
4444 try {
@@ -140,8 +140,8 @@ export default function General(){
140140 }
141141 }
142142
143- const handleClick = ( ) => { }
144-
143+ const handleClick = ( ) => { }
144+
145145 function saveGeneral ( ) {
146146 document . getElementById ( 'save' ) . innerHTML = 'Saving...' ;
147147
@@ -161,7 +161,7 @@ export default function General(){
161161
162162 var xhr = new XMLHttpRequest ( ) ;
163163
164- xhr . addEventListener ( 'readystatechange' , function ( ) {
164+ xhr . addEventListener ( 'readystatechange' , function ( ) {
165165 if ( this . readyState === 4 ) {
166166 console . log ( this . responseText ) ;
167167 document . getElementById ( 'save' ) . innerHTML = 'Save' ;
@@ -176,9 +176,9 @@ export default function General(){
176176 xhr . send ( data ) ;
177177
178178 }
179-
180- return (
181- < div className = "flex-1 xl:overflow-y-auto" >
179+
180+ return (
181+ < div className = "flex-1 xl:overflow-y-auto" >
182182 < div className = "mx-auto max-w-3xl px-4 py-10 sm:px-6 lg:px-8 lg:py-12" >
183183 < h1 className = "text-3xl font-bold tracking-tight text-white" >
184184 General
@@ -353,7 +353,7 @@ export default function General(){
353353 </ div >
354354
355355 { /* LOCATION OPTIONS */ }
356- < div className = "sm:col-span-3" >
356+ < div className = "sm:col-span-3" >
357357 < label
358358 htmlFor = "country"
359359 className = "block text-sm font-medium leading-6 text-white"
@@ -493,5 +493,5 @@ export default function General(){
493493 </ div >
494494 </ div >
495495 </ div >
496- ) ;
496+ ) ;
497497}
0 commit comments