@@ -13,21 +13,21 @@ function App() {
13
13
setContent ( < MatchTable auth = { auth } serverHost = { serverHost } /> )
14
14
return
15
15
}
16
- setContent ( < span className = "material-icons w3-xxxlarge rotate" > autorenew</ span > )
16
+ // setContent(<span className="material-icons w3-xxxlarge rotate">autorenew</span>)
17
17
18
- fetch ( serverHost + "/auth/whoami" , { credentials : "include" } )
19
- . then ( response => response . json ( ) )
20
- . then ( data => {
21
- if ( Object . keys ( data ) . length > 0 ) {
22
- setAuth ( data )
23
- } else {
24
- setContent ( < span className = "w3-xxxlarge rotate" > Connect account or upload demo file</ span > )
25
- }
26
- } )
27
- . catch ( err => {
28
- console . log ( err )
29
- setContent ( < span className = "w3-xxxlarge rotate" > failed to contact server ...</ span > )
30
- } )
18
+ // fetch(serverHost + "/auth/whoami", { credentials: "include" })
19
+ // .then(response => response.json())
20
+ // .then(data => {
21
+ // if (Object.keys(data).length > 0) {
22
+ // setAuth(data)
23
+ // } else {
24
+ // setContent(<span className="w3-xxxlarge rotate">Connect account or upload demo file</span>)
25
+ // }
26
+ // })
27
+ // .catch(err => {
28
+ // console.log(err)
29
+ // setContent(<span className="w3-xxxlarge rotate">failed to contact server ...</span>)
30
+ // })
31
31
} , [ serverHost , auth ] )
32
32
33
33
// let faceitAuth = (
@@ -36,13 +36,13 @@ function App() {
36
36
// Connect FACEIT <img src="https://upload.wikimedia.org/wikipedia/commons/5/52/Cib-faceit_%28CoreUI_Icons_v1.0.0%29.svg" height="32" alt="faceit-logo" />
37
37
// </a>
38
38
// </div>)
39
- let steamAuth = (
40
- < div className = 'steamAuth' >
41
- < a href = { serverHost + "/auth/steam/login" } >
42
- Connect Steam < img src = 'https://upload.wikimedia.org/wikipedia/commons/8/83/Steam_icon_logo.svg' height = "32" alt = "steam-login" />
43
- </ a >
44
- </ div >
45
- )
39
+ // let steamAuth = (
40
+ // <div className='steamAuth'>
41
+ // <a href={serverHost + "/auth/steam/login"}>
42
+ // Connect Steam <img src='https://upload.wikimedia.org/wikipedia/commons/8/83/Steam_icon_logo.svg' height="32" alt="steam-login" />
43
+ // </a>
44
+ // </div>
45
+ // )
46
46
if ( Object . keys ( auth ) . length > 0 ) {
47
47
// if (auth.faceitNickname) {
48
48
// faceitAuth = (
@@ -54,16 +54,16 @@ function App() {
54
54
// </div>
55
55
// )
56
56
// }
57
- if ( auth . steamId ) {
58
- steamAuth = (
59
- < div className = 'steamAuth' >
60
- < a href = { "https://steamcommunity.com/profiles/" + auth . steamId } target = "_blank" rel = "noreferrer" >
61
- < img src = { auth . steamAvatar } height = "32" alt = "steam-login" /> < span id = "steamNickname" > { auth . steamUsername } </ span >
62
- </ a >
63
- < a className = "material-icons w3-large" href = { serverHost + "/auth/steam/logout" } > logout</ a >
64
- </ div >
65
- )
66
- }
57
+ // if (auth.steamId) {
58
+ // steamAuth = (
59
+ // <div className='steamAuth'>
60
+ // <a href={"https://steamcommunity.com/profiles/" + auth.steamId} target="_blank" rel="noreferrer">
61
+ // <img src={auth.steamAvatar} height="32" alt="steam-login" /><span id="steamNickname">{auth.steamUsername}</span>
62
+ // </a>
63
+ // <a className="material-icons w3-large" href={serverHost + "/auth/steam/logout"}>logout</a>
64
+ // </div>
65
+ // )
66
+ // }
67
67
}
68
68
69
69
return (
@@ -84,7 +84,7 @@ function App() {
84
84
</ div >
85
85
< div className = "w3-col l4 w3-right-align" >
86
86
{ /* <div className='faceit'>{faceitAuth}</div> */ }
87
- < div className = 'steam' > { steamAuth } </ div >
87
+ { /* <div className='steam'>{steamAuth}</div> */ }
88
88
</ div >
89
89
</ div >
90
90
</ div >
0 commit comments