Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-capstone-design1
/
Triz_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
sdy
2020-05-17 17:15:52 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
21be8a079cc1b9219a511f88cbd7242775f0fab5
21be8a07
1 parent
a3903a36
remove button and refactoring log out codes
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
21 deletions
front/src/Routes/Menu/MenuPresenter.js
front/src/Routes/Menu/MenuPresenter.js
View file @
21be8a0
...
...
@@ -7,9 +7,9 @@ import {
faCog
,
faQuestionCircle
,
faTags
,
faSignOutAlt
,
}
from
"@fortawesome/free-solid-svg-icons"
;
import
{
BrowserRouter
as
Router
,
Link
}
from
"react-router-dom"
;
import
Button
from
"../../Components/Button"
;
const
MenuBar
=
styled
.
div
`
width: 15%;
...
...
@@ -122,24 +122,6 @@ const StyledLink = styled(Link)`
)
return
"center"
;
}};
button
{
width
:
100
%
;
height
:
100
%
;
color
:
white
;
background
-
color
:
#
667
aff
;
display
:
flex
;
flex
-
direction
:
row
;
align
-
items
:
center
;
justify
-
content
:
center
;
opacity
:
0.8
;
font
-
size
:
20
px
;
cursor
:
pointer
;
transition
:
0.5
s
;
&
:
hover
{
color
:
#
667
aff
;
background
-
color
:
white
;
}
}
`;
export default ({ logOut }) => {
...
...
@@ -181,8 +163,11 @@ export default ({ logOut }) => {
</IconBox>
</StyledLink>
</FuncIconBox>
<StyledLink to="/" className="LogOutLink">
<Button text="Log Out" onClick={logOut}></Button>
<StyledLink to="/" className="LogOutLink" onClick={logOut}>
<IconBox>
<FontAwesomeIcon icon={faSignOutAlt} />
<IconName /> Log Out
</IconBox>
</StyledLink>
</Router>
</MenuBar>
...
...
Please
register
or
login
to post a comment