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
a1e1675b
Commit
a1e1675b
authored
May 13, 2021
by
Shaphen Pangburn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[AFP-131 Shaphen Pangburn]: Adjust logout button to be in plain text
parent
b218ac99
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
header-container.js
ecom-web/src/components/Header/header-container.js
+2
-1
header.js
ecom-web/src/components/Header/header.js
+2
-0
No files found.
ecom-web/src/components/Header/header-container.js
View file @
a1e1675b
...
...
@@ -5,7 +5,8 @@ import { logOut } from '../../actions/session_actions';
const
mSTP
=
state
=>
({
user
:
state
.
user
,
cartLength
:
state
.
cart
.
length
cartLength
:
state
.
cart
.
length
,
image
:
state
.
user
?.
userImage
});
const
mDTP
=
dispatch
=>
({
...
...
ecom-web/src/components/Header/header.js
View file @
a1e1675b
...
...
@@ -55,12 +55,14 @@ export default class Header extends Component {
{
!
this
.
props
.
user
?.
currentUser
?
<
Navbar
.
Text
className
=
"nav-bar-text"
id
=
"white-color"
>
Hello
Guest
<
/Navbar.Text>
:
<
NavDropdown
className
=
"nav-bar-text"
title
=
{
"Hello "
+
userName
}
id
=
"collasible-nav-dropdown"
>
<
image
src
=
{
this
.
props
.
Image
}
/
>
<
NavDropdown
.
Item
><
NavLink
to
=
"/orders"
>
Order
History
<
/NavLink></
NavDropdown
.
Item
>
<
NavDropdown
.
Item
>
<
GoogleLogout
clientId
=
{
clientId
}
buttonText
=
"Logout"
onLogoutSuccess
=
{
this
.
logOutSuccess
}
render
=
{
props
=>
(
<
div
onClick
=
{
props
.
onClick
}
>
Logout
<
/div>
)
}
>
<
/GoogleLogout
>
<
/NavDropdown.Item
>
...
...
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