Skip to content

Commit ef07862

Browse files
committed
Added dropdown option above the sign out option for User Profiles
1 parent be4ab82 commit ef07862

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

client/src/components/navigation/ProfileDropdown.js

+9-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,15 @@ const ProfileDropdown = () => {
1717
window.location.href = link;
1818
};
1919

20-
const options = [{ onClick: handleSignOut, label: "Sign Out" }];
20+
const options = [
21+
{
22+
onClick: () => {
23+
alert("This feature is in progress.");
24+
},
25+
label: "User Profile",
26+
},
27+
{ onClick: handleSignOut, label: "Sign Out" },
28+
];
2129

2230
return (
2331
<Wrapper>

client/src/components/posts/refactorComponents/PostWrapper.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,9 @@ const PostWrapper = ({
234234
export default PostWrapper;
235235

236236
const Wrapper = styled.div`
237-
margin: 2em;
237+
margin: 2em 0;
238238
padding: 0.5em;
239-
width: 100%px;
239+
width: 100%;
240240
/* max-width: 900px; */
241241
/* min-height: 255px; */
242242
/* height: 255px; */

0 commit comments

Comments
 (0)