Skip to content

Commit

Permalink
remove auth state from header when on signup page
Browse files Browse the repository at this point in the history
  • Loading branch information
huzaifa-99 committed Mar 1, 2023
1 parent 6ef29a4 commit 323c67a
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions app/web-frontend/src/pages/Signup/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ const handleLogout = () => {
authUser.removeUser();
};

let isAppUpdated = false;

function Signup() {
const navigate = useNavigate();
const { updateAppKey } = useAppKeys();
Expand All @@ -24,19 +26,21 @@ function Signup() {

useEffect(() => {
handleLogout();
if (!isAppUpdated) { updateAppKey(); isAppUpdated = true; }
}, []);

return (
<div style={{
minHeight: '60vh',
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
flexDirection: 'column',
gap: '16px',
maxWidth: '600px',
margin: 'auto',
}}
<div
style={{
minHeight: '60vh',
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
flexDirection: 'column',
gap: '16px',
maxWidth: '600px',
margin: 'auto',
}}
>
<h4 style={{ fontSize: '28px', fontWeight: 'bold' }}>
Signup with your cardano wallet.
Expand Down

0 comments on commit 323c67a

Please sign in to comment.