Skip to content

Commit

Permalink
FIX #280 Sign-in and Sign-out Behavior πŸ›
Browse files Browse the repository at this point in the history
  • Loading branch information
Swapnil1530 committed Aug 5, 2023
1 parent 81c93e0 commit 1bd1464
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions components/UI/Terminal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,25 @@ const Terminal = () => {

"sign-in": {
help: "Redirects you to the login page",
action: signIn,
action: isLoggedIn ? (
<div>
<p>You Are Alredy Signed In</p>
</div>
) : (
signIn
),
},

"sign-out": {
help: "Sign out the current user",
action: signOut,
action: !isLoggedIn ? (
<div>
<p>You need to be signed in to use this command!</p>
<span style={{ color: "#38CC77" }}>Just type `sign-in`</span>
</div>
) : (
signOut
),
},

"get-location": {
Expand Down

0 comments on commit 1bd1464

Please sign in to comment.