Skip to content

Commit

Permalink
OWASP#129:Made Video Upload Functionality eminent
Browse files Browse the repository at this point in the history
  • Loading branch information
Chahat Jain authored and Chahat Jain committed Oct 9, 2022
1 parent d5f7b41 commit d56dee6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
14 changes: 14 additions & 0 deletions services/web/src/components/profile/profile.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,18 @@
.more-icon{
color: black;
font-size: x-large;
}

.upload-video-button{
width: 100%;
height: 100%;
min-width: 900px;
align-items: center;
justify-content: center;
display:flex;
margin-top: 40px;

}
.button{
align-items: center;
}
6 changes: 3 additions & 3 deletions services/web/src/components/profile/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ const Profile = (props) => {
<Menu.Item key="3">Share Video with Community</Menu.Item>
</Menu>
) : (
<Menu onClick={(key) => takeVideoAction(key)}>
<Menu.Item key="1">Upload Video</Menu.Item>
</Menu>
<div className="upload-video-button">
<Button className="button" type="text" onClick={() => videoInputRef.current.click()}>Upload Video</Button>
</div>
);
};

Expand Down

0 comments on commit d56dee6

Please sign in to comment.