-
Notifications
You must be signed in to change notification settings - Fork 3
TUR-60: Basic NavBar Drop down menu #43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
… main Updated#
|
||
const toggling = () => setIsOpen(!isOpen); | ||
|
||
const onOptionClicked = value => () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same comment as for david
const functionName = (values) => {
body
}
const onOptionClicked = value => () => { | ||
setSelectedOption(value); | ||
setIsOpen(false); | ||
console.log(selectedOption); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove comments
<DropDownListContainer> | ||
<DropDownList> | ||
{options.map(option => ( | ||
<ListItem onClick={onOptionClicked(option)} key={Math.random()}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
call onOptionClicked with arrow function
} | ||
`; | ||
|
||
export const DropDownHeader = styled("div")` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why ("div") instead of div
@@ -33,7 +34,8 @@ class NavBar extends Component { | |||
|
|||
{auth.isAuthenticated ? ( | |||
<UserRow> | |||
<Name key={3}>{`Logged in as: ${userName}`}</Name> | |||
{/* <Name key={3}>{`Logged in as: ${userName}`}</Name> */} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove comments
} | ||
|
||
renderTableHeader() { | ||
let header = Object.keys(this.state.students[0]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const here too
@@ -0,0 +1,2 @@ | |||
import styled from 'styled-components'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this and other empty files in NewPage
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and empty images
box-shadow: 0 1px 15px; | ||
color: #FFFFE0; | ||
border-radius: 20px; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clean up spacing
box-sizing: border-box; | ||
transform: translate(-50%, -50%); | ||
box-shadow: 0 1px 15px; | ||
color: #FFFFE0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see if you can use palette in styles folder for colors
height: 100vh; | ||
background-position: center; | ||
background-size: cover; | ||
`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clean up spacing. You can keep empty test files
Created base drop down menu in the navbar