Skip to content

Commit

Permalink
ss
Browse files Browse the repository at this point in the history
  • Loading branch information
boody committed May 7, 2024
1 parent cb7b950 commit 1f1e0ca
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions src/Components/APPOINTMENT/Appointment.scss
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,11 @@ form{
}
.select{
padding: 10px;
}
.danger{
background-color: #fc6060;
padding: 1px 10px;
margin: 5px 0;
color: white;
border-radius: 2px;
}
2 changes: 1 addition & 1 deletion src/Components/APPOINTMENT/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ export default function Index() {
<td>{appointment.date}</td>
<td>{appointment.doctor}</td>
<td>
<button className="btn btn-danger" onClick={() => handelDelete(appointment._id)}>حذف</button>
<button className="danger" onClick={() => handelDelete(appointment._id)}>حذف</button>
</td>
</tr>
))}
Expand Down
2 changes: 1 addition & 1 deletion src/Components/LogOut/LogOut.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function LogOut() {
}
return (
<div>
<button onClick={handelLogOut} className='btn btn-danger'>Log Out</button>
<button onClick={handelLogOut} className='danger'>Log Out</button>
</div>
)
}
2 changes: 1 addition & 1 deletion src/pages/Dashboard/Dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export default function Dashboard() {
<td>{appointment.doctor}</td>
<td>
{/* زر لحذف الموعد عند النقر عليه */}
<button className='btn btn-danger' onClick={() => deleteAppointment(appointment._id)}>حذف</button>
<button className='danger' onClick={() => deleteAppointment(appointment._id)}>حذف</button>
</td>
</tr>
))}
Expand Down

0 comments on commit 1f1e0ca

Please sign in to comment.