Skip to content

Commit

Permalink
Workplan Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
kasundie30 committed Sep 25, 2024
1 parent da844a8 commit c4e6396
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions front-end/src/Pages/Workplan.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ function Workplan() {
<h3>Workplan</h3>
</div>
<div className={style["container"]}>
{!addRow && loggedInUser.isLoggedIn && <div>
<button className={style["addNewButton"]} onClick={onAddNewClicked}>Add New</button>
</div>}
<div className={style["tableContainer"]}>
<table className={style["table"]}>
<thead>
Expand Down Expand Up @@ -248,9 +251,6 @@ function Workplan() {
</tfoot> */}
</table>
</div>
{!addRow && loggedInUser.isLoggedIn && <div>
<button className={style["addNewButton"]} onClick={onAddNewClicked}>Add New</button>
</div>}
</div>
{/* Dialog- Add New Row/Edit Row */}
{ (addRow || editRow) && <Dialog
Expand Down
6 changes: 3 additions & 3 deletions front-end/src/components/Workplan.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,14 @@

/* Add New Button */
.addNewButton{
width: 100px;
width: 150px;
height: 50px;
margin: 20px 0px;
padding: 10px 20px;
font-size: 14px;
background-color: hsl(226, 64%, 35%);
text-decoration: none;
font-family: Arial, sans-serif;
font-size: 16px;
font-family: 'Caudex';
border: none;
border-radius: 5px;
cursor: pointer;
Expand Down

0 comments on commit c4e6396

Please sign in to comment.