Removed redundant logged in state checking at Logout.tsx

This commit is contained in:
Keannu Christian Bernasol 2023-02-16 14:43:55 +08:00
parent 9ae0a8b569
commit 837ef24eff
2 changed files with 13 additions and 18 deletions

View file

@ -22,9 +22,6 @@ export default function Logout(props: props) {
await console.log("test " + logged_in); await console.log("test " + logged_in);
} }
if (!logged_in) {
return <div></div>;
} else {
return ( return (
<div style={{ paddingTop: "90%" }}> <div style={{ paddingTop: "90%" }}>
<Button <Button
@ -39,4 +36,3 @@ export default function Logout(props: props) {
</div> </div>
); );
} }
}

View file

@ -1,5 +1,4 @@
import React from "react"; import React from "react";
import AppLogo from "../../Components/Icons/AppLogo/AppLogo";
import styles from "../../styles"; import styles from "../../styles";
import NotFoundIcon from "../../Components/Icons/NotFoundIcon/NotFoundIcon"; import NotFoundIcon from "../../Components/Icons/NotFoundIcon/NotFoundIcon";