Closed GregStephen closed 5 years ago
Navbar dropdown https://reactstrap.github.io/components/navbar/
<UncontrolledDropdown nav inNavbar>
<DropdownToggle nav caret>
User
</DropdownToggle>
<DropdownMenu right>
<DropdownItem header>
User Name
</DropdownItem>
<DropdownItem divider />
<DropdownItem>
Account Settings
</DropdownItem>
</DropdownMenu>
</UncontrolledDropdown>
User Story
As a user, when not logged in I should see a navbar with just PoopScoop on the right and a
Log in/Sign up
button on the top right. When logged the button should change to a button that says user with a dropdown menuAC
WHEN the user loads the page IF the user is logged in THEN there should be 'PoopScoop' on the left AND a button on the right that says User WITH a dropdown button containing their name and a link to `Account Settings' ELSE there should be 'PoopScoop' on the left AND a button that says 'Log In/Sign Up' on the right
Development
MyNavbar
componenttoggle
function from ReactStrap that is in this issues comment.MyNavbar
include the ReactStraptag={RRNavLink} to '/home'>
inside of thebuildNavbar
.<Nav className="ml-auto" navbar><NavItem><NavLink onClick={this.logIn}>Log In/ Sign Up</NavLink></NavItem></Nav>
logMeOut
function that runs thefirebase.auth().signOut()
;