Skip to content

Conversation

cayalame
Copy link
Contributor

Created base drop down menu in the navbar


const toggling = () => setIsOpen(!isOpen);

const onOptionClicked = value => () => {
Copy link
Contributor

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);
Copy link
Contributor

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()}>
Copy link
Contributor

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")`
Copy link
Contributor

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> */}
Copy link
Contributor

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])
Copy link
Contributor

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';
Copy link
Contributor

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

Copy link
Contributor

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;

Copy link
Contributor

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;
Copy link
Contributor

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;
`;
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants