Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ecommerce-maven
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ascend
ecommerce-maven
Commits
d6e08307
Commit
d6e08307
authored
May 11, 2021
by
Shaphen Pangburn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[AFP-48 Shaphen Pangburn]: Add spacing for google login button
parent
66d6ab94
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
session.jsx
ecom-web/src/components/session/session.jsx
+2
-5
session.css
ecom-web/src/resources/stylesheets/session.css
+7
-0
No files found.
ecom-web/src/components/session/session.jsx
View file @
d6e08307
import
React
,
{
Component
}
from
'react'
import
{
GoogleLogin
,
GoogleLogout
}
from
'react-google-login'
;
import
'../../resources/stylesheets/session.css'
const
clientId
=
`
${
process
.
env
.
REACT_APP_GOOGLE_CLIENT_ID
}
.apps.googleusercontent.com`
;
...
...
@@ -16,10 +17,6 @@ export default class Session extends Component {
this
.
logOutSuccess
=
this
.
logOutSuccess
.
bind
(
this
)
}
// componentDidMount(){
// this.props.logOut()
// }
loginSuccess
=
(
response
)
=>
{
const
{
accessToken
,
tokenId
,
googleId
:
userId
,
profileObj
}
=
response
const
{
email
,
familyName
:
lastName
,
givenName
:
firstName
}
=
profileObj
...
...
@@ -39,7 +36,7 @@ export default class Session extends Component {
render
()
{
return
(
<
div
>
<
div
className=
"google-login-button"
>
{
!
this
.
state
.
logIn
?
<
GoogleLogin
clientId=
{
clientId
}
...
...
ecom-web/src/resources/stylesheets/session.css
0 → 100644
View file @
d6e08307
.google-login-button
{
margin-right
:
20px
;
}
.google-login-button
button
{
border-radius
:
25px
;
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment