Skip to content

Commit

Permalink
Adjust button color for light theme
Browse files Browse the repository at this point in the history
  • Loading branch information
js0mmer committed Oct 10, 2024
1 parent 9c938fc commit ec6b36f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/src/component/Review/SubReview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const SubReview: FC<SubReviewProps> = ({ review, course, professor }) => {
const [cookies] = useCookies(['user']);
const [reportFormOpen, setReportFormOpen] = useState<boolean>(false);
const { darkMode } = useContext(ThemeContext);
const theme = darkMode ? 'dark' : 'light';
const buttonVariant = darkMode ? 'dark' : 'secondary';
const [showDeleteModal, setShowDeleteModal] = useState(false);
const [showReviewForm, setShowReviewForm] = useState(false);

Expand Down Expand Up @@ -149,7 +149,7 @@ const SubReview: FC<SubReviewProps> = ({ review, course, professor }) => {
<div className="subreview">
{cookies.user?.id === review.userID && (
<div className="edit-buttons">
<Button variant={theme} className="edit-button" onClick={openReviewForm}>
<Button variant={buttonVariant} className="edit-button" onClick={openReviewForm}>
<PencilFill width="16" height="16" />
</Button>
<Button variant="danger" className="delete-button" onClick={() => setShowDeleteModal(true)}>
Expand Down

0 comments on commit ec6b36f

Please sign in to comment.