From 16da6c778e2706d6d08c2aab951e4e812ead2672 Mon Sep 17 00:00:00 2001 From: Heikki Hellgren Date: Wed, 20 Nov 2024 09:57:12 +0200 Subject: [PATCH] chore: highlight questions without answers in list --- .../qeta-react/src/components/PostsContainer/PostListItem.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/qeta-react/src/components/PostsContainer/PostListItem.tsx b/plugins/qeta-react/src/components/PostsContainer/PostListItem.tsx index 041c88c3..b4c937f9 100644 --- a/plugins/qeta-react/src/components/PostsContainer/PostListItem.tsx +++ b/plugins/qeta-react/src/components/PostsContainer/PostListItem.tsx @@ -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, })}