466 viewsMern Amazona
0 Comments

[apcode language=”jscript”]

{userInfo && userInfo.isAdmin && (
                    <NavDropdown title="Admin" id="admin-nav-dropdown">
                      <LinkContainer to="/admin/dashboard">
                        <NavDropdown.Item>Dashboard</NavDropdown.Item>
                      </LinkContainer>
                      <LinkContainer to="/admin/products">
                        <NavDropdown.Item>Products</NavDropdown.Item>
                      </LinkContainer>
                      <LinkContainer to="/admin/orders">
                        <NavDropdown.Item>Orders</NavDropdown.Item>
                      </LinkContainer>
                      <LinkContainer to="/admin/users">
                        <NavDropdown.Item>Users</NavDropdown.Item>
                      </LinkContainer>
                    </NavDropdown>

[/apcode]

Bassir Answered question March 9, 2023

The admin email and password exist in the data.js here:

https://github.com/basir/mern-amazona/blob/master/backend/data.js#L7

Bassir Answered question March 9, 2023
You are viewing 1 out of 1 answers, click here to view all answers.