-
Notifications
You must be signed in to change notification settings - Fork 7
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
add shared components for login page #144
add shared components for login page #144
Conversation
onkar-josh
commented
May 19, 2020
•
edited
Loading
edited
- I have created shared component for Peerly logo.
- I have written test case for Peerly logo shared component.
cf593d1
to
50faf1c
Compare
react-frontend/src/shared-components/peerly-Logo/LogoComponent.test.js
Outdated
Show resolved
Hide resolved
react-frontend/src/shared-components/peerly-Logo/LogoComponent.js
Outdated
Show resolved
Hide resolved
@@ -0,0 +1,28 @@ | |||
import React from "react"; | |||
import { Button } from "react-bootstrap"; |
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.
Missing core component wrapper
@@ -0,0 +1,54 @@ | |||
import React from "react"; | |||
|
|||
import { Col, Row } from "react-bootstrap"; |
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.
Missing core component wrapper over react-bootstrap
component imports
|
||
import LabelComponent from "core-components/Label/LabelComponent"; | ||
|
||
const Logo = 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.
React developer guidelines not met. Go through them again.
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.
@onkar-josh address this comment
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.
@mayuriardad the folder name of label is changed.
`; | ||
|
||
const LogoComponent = () => ( | ||
<Row className="d-flex flex-column" data-testid="peerlyLogoComponent"> |
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 does a shared component for LogoComponent
need Row
, Col
? Explain the purpose!
a981fbc
to
f663a5e
Compare
`; | ||
const PlusSign = Styled.div` | ||
position: absolute; | ||
top: 55%; |
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.
indentation miss
cc: @sahilbhatia
8ff0195
to
d488cf5
Compare
cf8ea86
to
ff832f5
Compare