Skip to content

Commit

Permalink
chore: highlight questions without answers in list
Browse files Browse the repository at this point in the history
  • Loading branch information
drodil committed Nov 20, 2024
1 parent 323077c commit 16da6c7
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,11 @@ export const PostListItem = (props: PostListItemProps) => {
size="small"
sx={theme => ({
userSelect: 'none',
// eslint-disable-next-line no-nested-ternary
borderColor: correctAnswer
? theme.palette.success.main
: answersCount === 0
? theme.palette.warning.main
: undefined,
marginBottom: 0,
})}
Expand Down

0 comments on commit 16da6c7

Please sign in to comment.