-
Notifications
You must be signed in to change notification settings - Fork 13
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
React rendering #74
React rendering #74
Conversation
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.
cc @SupritBehera i have reviewed the PR . Just some minor fixes . Rest looks great . I believe there must be some eslint warnings when you run the code , do fix them as well .
Also the commit messages should have only the first word with a capital initial , rest of the message should be in lower case .
<i className="fa fa-twitter" /> | ||
</p> | ||
<div className="slick-slide"> | ||
<img src="./images/face6.png" /> |
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.
Add alt tag to images throughout the code .
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.
These were hardcoded img tags, so had not changed them. Will ensure the alt tags are there in the component that would have the code to display a team member card given its properties and details. Have added alt tags in the few img tags throughout the project (other than Teams page) that didn't have alt tags.
client/src/components/team/Team.js
Outdated
@@ -1,175 +1,173 @@ | |||
import React from 'react'; | |||
import landscape from '.././images/landscape.jpg'; | |||
|
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 blank line to make the code consistent
@@ -1,57 +1,59 @@ | |||
import React from 'react'; | |||
import logo from '.././images/logo.svg'; | |||
import { Link } from 'react-router-dom'; | |||
|
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 blank line
</li> | ||
</ul> | ||
</div> | ||
</nav> | ||
</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.
you haven't exported this component .. any specific reason ?
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.
I'm not sure I understand, I have exported the Navbar component in line 61 in Navbar.js with export default Navbar
client/src/components/blogs/Blogs.js
Outdated
|
||
const Blogs = () => { | ||
return ( | ||
<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.
prefer wrapping the contents of components inside a react fragment as the parent tag (In all the components )
…ebsite into react-rendering
Proposed changes
Fixes issue #73
Landing, Teams, Events and Blog page integrated
Types of changes
What types of changes does your code introduce to Litmus? Put an
x
in the boxes that applyChecklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.Dependency
Special notes for your reviewer:
Work in progress.