mirror of
https://github.com/lemeow125/Ivy-Frontend.git
synced 2024-11-17 06:39:25 +08:00
Removed redundant logged in state checking at Logout.tsx
This commit is contained in:
parent
9ae0a8b569
commit
837ef24eff
2 changed files with 13 additions and 18 deletions
|
@ -22,21 +22,17 @@ export default function Logout(props: props) {
|
|||
await console.log("test " + logged_in);
|
||||
}
|
||||
|
||||
if (!logged_in) {
|
||||
return <div></div>;
|
||||
} else {
|
||||
return (
|
||||
<div style={{ paddingTop: "90%" }}>
|
||||
<Button
|
||||
onClick={login}
|
||||
value="Log out"
|
||||
variant="contained"
|
||||
style={styles.logout_button}
|
||||
>
|
||||
{props.children}
|
||||
<p style={styles.text}>Log Out</p>
|
||||
</Button>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
return (
|
||||
<div style={{ paddingTop: "90%" }}>
|
||||
<Button
|
||||
onClick={login}
|
||||
value="Log out"
|
||||
variant="contained"
|
||||
style={styles.logout_button}
|
||||
>
|
||||
{props.children}
|
||||
<p style={styles.text}>Log Out</p>
|
||||
</Button>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import React from "react";
|
||||
import AppLogo from "../../Components/Icons/AppLogo/AppLogo";
|
||||
import styles from "../../styles";
|
||||
import NotFoundIcon from "../../Components/Icons/NotFoundIcon/NotFoundIcon";
|
||||
|
||||
|
|
Loading…
Reference in a new issue