Skip to content

Commit

Permalink
Merge pull request #10 from mahdinoori2000/feature/Fix-delete-page-de…
Browse files Browse the repository at this point in the history
…sign

Fix and style delete page design
  • Loading branch information
ismayito authored Feb 14, 2024
2 parents e377dee + 3517f2d commit 5651ead
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/components/delete/Delete.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ function Delete() {
<div>
<p>
There are no doctors added yet!
<NavLink to="/doctors/add-doctor">Click here to add</NavLink>
<NavLink to="/doctors/add-doctor" className="link">
Click here to add
</NavLink>
</p>
</div>
) : (
Expand Down Expand Up @@ -58,7 +60,11 @@ function Delete() {
<td>{name}</td>
<td>{specialization}</td>
<td>
<button type="button" onClick={() => handleDelete(id)}>
<button
type="button"
className="delete-btn"
onClick={() => handleDelete(id)}
>
Delete
</button>
</td>
Expand Down
18 changes: 18 additions & 0 deletions src/components/delete/delete.css
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,21 @@ th {
height: 100%;
border-radius: 100%;
}

.delete-btn {
border: 2px solid var(--bg-button-color);
padding: 6px;
color: #fff;
background-color: var(--bg-button-color);
border-radius: 24px;
}

.delete-btn:active {
color: red;
background-color: #fff;
}

.link {
text-decoration: underline;
color: var(--bg-button-color);
}

0 comments on commit 5651ead

Please sign in to comment.