Skip to content

Commit

Permalink
Merge pull request #285 from Swapnil1530/main
Browse files Browse the repository at this point in the history
fix: sign-in and sign-out Behavior
  • Loading branch information
piyushgarg-dev authored Oct 8, 2023
2 parents c8a446b + 1bd1464 commit 60d697d
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

1 comment on commit 60d697d

@vercel
Copy link

@vercel vercel bot commented on 60d697d Oct 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.