sdy

remove button and refactoring log out codes

...@@ -7,9 +7,9 @@ import { ...@@ -7,9 +7,9 @@ import {
7 faCog, 7 faCog,
8 faQuestionCircle, 8 faQuestionCircle,
9 faTags, 9 faTags,
10 + faSignOutAlt,
10 } from "@fortawesome/free-solid-svg-icons"; 11 } from "@fortawesome/free-solid-svg-icons";
11 import { BrowserRouter as Router, Link } from "react-router-dom"; 12 import { BrowserRouter as Router, Link } from "react-router-dom";
12 -import Button from "../../Components/Button";
13 13
14 const MenuBar = styled.div` 14 const MenuBar = styled.div`
15 width: 15%; 15 width: 15%;
...@@ -122,24 +122,6 @@ const StyledLink = styled(Link)` ...@@ -122,24 +122,6 @@ const StyledLink = styled(Link)`
122 ) 122 )
123 return "center"; 123 return "center";
124 }}; 124 }};
125 - button {
126 - width: 100%;
127 - height: 100%;
128 - color: white;
129 - background-color: #667aff;
130 - display: flex;
131 - flex-direction: row;
132 - align-items: center;
133 - justify-content: center;
134 - opacity: 0.8;
135 - font-size: 20px;
136 - cursor: pointer;
137 - transition: 0.5s;
138 - &:hover {
139 - color: #667aff;
140 - background-color: white;
141 - }
142 - }
143 `; 125 `;
144 126
145 export default ({ logOut }) => { 127 export default ({ logOut }) => {
...@@ -181,8 +163,11 @@ export default ({ logOut }) => { ...@@ -181,8 +163,11 @@ export default ({ logOut }) => {
181 </IconBox> 163 </IconBox>
182 </StyledLink> 164 </StyledLink>
183 </FuncIconBox> 165 </FuncIconBox>
184 - <StyledLink to="/" className="LogOutLink"> 166 + <StyledLink to="/" className="LogOutLink" onClick={logOut}>
185 - <Button text="Log Out" onClick={logOut}></Button> 167 + <IconBox>
168 + <FontAwesomeIcon icon={faSignOutAlt} />
169 + <IconName /> Log Out
170 + </IconBox>
186 </StyledLink> 171 </StyledLink>
187 </Router> 172 </Router>
188 </MenuBar> 173 </MenuBar>
......