Skip to content

Commit

Permalink
Merge pull request #114 from kasundie30/main
Browse files Browse the repository at this point in the history
Updated - Add New buttons
  • Loading branch information
kasundie30 authored Sep 25, 2024
2 parents 7bee52d + c4e6396 commit aa9345c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions front-end/src/Pages/Deliverables.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@ const onViewClick = (deliverable) => {
</nav>
</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 @@ -236,9 +239,6 @@ const onViewClick = (deliverable) => {
</tfoot> */}
</table>
</div>
{!addRow && loggedInUser.isLoggedIn && <div>
<button className={style["addNewButton"]} onClick={onAddNewClicked}>Add New</button>
</div>}
</div>
{ (addRow || editRow) && <Dialog
open={showDiologBox}
Expand Down
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/Deliverables.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,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
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 aa9345c

Please sign in to comment.