summaryrefslogtreecommitdiff
path: root/microservices/04-react-app/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'microservices/04-react-app/src/components')
-rw-r--r--microservices/04-react-app/src/components/Navbar.jsx3
1 files changed, 3 insertions, 0 deletions
diff --git a/microservices/04-react-app/src/components/Navbar.jsx b/microservices/04-react-app/src/components/Navbar.jsx
index 9697c73..bc79138 100644
--- a/microservices/04-react-app/src/components/Navbar.jsx
+++ b/microservices/04-react-app/src/components/Navbar.jsx
@@ -29,11 +29,14 @@ const Navbar = () => {
About
</NavLink>
</li>
+
+ {isLoggedIn() && (
<li>
<NavLink className="nav-link" to="/posts" end>
Posts
</NavLink>
</li>
+ )}
<RoleGuard allowedRoles={['ADMIN']}>
<li>