Skip to content

Commit

Permalink
Added default purple coursebar
Browse files Browse the repository at this point in the history
  • Loading branch information
bc2k13 committed Jan 29, 2025
1 parent f3721b7 commit 71f3bac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/components/Post/Post.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
color: #fff;
}

.post-bar-default {
background-color: #6C3BB6;
}
.post-bar-cs {
background-color: #7593ff;
}
Expand Down
3 changes: 2 additions & 1 deletion src/components/Post/Post.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import "./Post.css";
import { set } from 'firebase/database';

const courseClassMap = {
DEFAULT: "post-bar-default",
CS: "post-bar-cs",
PHYSICS: "post-bar-physics",
GEN_ENG: "post-bar-gen_eng",
Expand All @@ -22,7 +23,7 @@ function getCourseBarClass(courseName) {
return courseClassMap[prefix];
}
}
return "";
return courseClassMap["DEFAULT"];
}

function getQuarterClass(quarter) {
Expand Down

0 comments on commit 71f3bac

Please sign in to comment.