Skip to content

Commit

Permalink
commented on something to do
Browse files Browse the repository at this point in the history
  • Loading branch information
esaintb committed Aug 2, 2023
1 parent 749ee5b commit b03242c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/components/NavBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const NavBar = ({ handleLogout, isLoggedIn, token, loading }) => {
setAnchorEl(null);
};

// don't need, call in the session state from session storage
useEffect(() => {
if (isLoggedIn) {
axios
Expand Down Expand Up @@ -130,7 +131,7 @@ const NavBar = ({ handleLogout, isLoggedIn, token, loading }) => {
type="submit"
component={Link}
to="/register"
// color="inherit"
// color="inherit"
>
Sign up
</Button>
Expand All @@ -140,7 +141,7 @@ const NavBar = ({ handleLogout, isLoggedIn, token, loading }) => {
type="submit"
component={Link}
to="/login"
// color="inherit"
// color="inherit"
>
Log in
</Button>
Expand All @@ -166,10 +167,10 @@ const NavBar = ({ handleLogout, isLoggedIn, token, loading }) => {
style={
loading
? {
backgroundColor: "black",
color: "yellow",
width: "20px",
}
backgroundColor: "black",
color: "yellow",
width: "20px",
}
: {}
}
>
Expand Down

0 comments on commit b03242c

Please sign in to comment.