Skip to content

Commit

Permalink
color change. still need breadcrumbs
Browse files Browse the repository at this point in the history
  • Loading branch information
cadetjer committed Mar 14, 2024
1 parent fd3b07e commit 217a7fd
Showing 1 changed file with 1 addition and 30 deletions.
31 changes: 1 addition & 30 deletions src/Kanbas/Dashboard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,35 +37,6 @@ function Dashboard(

) {

// const [courses, setCourses] = useState(db.courses);
// const [course, setCourse] = useState({
// _id: "0", name: "New Course", number: "New Number",
// startDate: "2023-09-10", endDate: "2023-12-15",
// image: "/images/reactjs.jpg"
// });
// const addNewCourse = () => {
// const newCourse = {
// ...course,
// _id: new Date().getTime().toString()
// };
// setCourses([...courses, { ...course, ...newCourse }]);
// };
// const deleteCourse = (courseId: string) => {
// setCourses(courses.filter((course) => course._id !== courseId));
// };
// const updateCourse = () => {
// setCourses(
// courses.map((c) => {
// if (c._id === course._id) {
// return course;
// } else {
// return c;
// }
// })
// );
// };


return (
<div className="d-flex">
<div className="d-md-none">
Expand All @@ -82,7 +53,7 @@ function Dashboard(
<button className="btn btn-primary me-2" onClick={addNewCourse} >
Add
</button>
<button onClick={updateCourse} className="btn btn-primary me-2" >
<button onClick={updateCourse} className="btn btn-success me-2" >
Update
</button>
</div>
Expand Down

0 comments on commit 217a7fd

Please sign in to comment.