From c4e37cb326ae816f179b7b97fbf2479575df756a Mon Sep 17 00:00:00 2001 From: Mohamed Boudra Date: Wed, 4 Feb 2026 13:18:58 +0700 Subject: [PATCH] Update files --- packages/app/src/components/message.tsx | 33 ++++++++++++++++--------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/packages/app/src/components/message.tsx b/packages/app/src/components/message.tsx index 315e0cab3..3989990a2 100644 --- a/packages/app/src/components/message.tsx +++ b/packages/app/src/components/message.tsx @@ -792,20 +792,19 @@ const todoListCardStylesheet = StyleSheet.create((theme) => ({ alignItems: "center", gap: theme.spacing[2], }, - radioOuter: { + radioBadge: { width: 16, height: 16, borderRadius: 8, - borderWidth: theme.borderWidth[1], - borderColor: theme.colors.foregroundMuted, + backgroundColor: theme.colors.foregroundMuted, alignItems: "center", justifyContent: "center", }, - radioInner: { - width: 8, - height: 8, - borderRadius: 4, - backgroundColor: theme.colors.foregroundMuted, + radioBadgeIncomplete: { + opacity: 0.55, + }, + radioBadgeComplete: { + opacity: 0.95, }, itemText: { flex: 1, @@ -827,7 +826,9 @@ export const TodoListCard = memo(function TodoListCard({ disableOuterSpacing, }: TodoListCardProps) { const { theme: unistylesTheme } = useUnistyles(); - const [isExpanded, setIsExpanded] = useState(true); + const [isExpanded, setIsExpanded] = useState(false); + + const nextTask = useMemo(() => items.find((item) => !item.completed)?.text, [items]); const handleToggle = useCallback(() => { setIsExpanded((prev) => !prev); @@ -842,8 +843,17 @@ export const TodoListCard = memo(function TodoListCard({ ) : ( items.map((item, idx) => ( - - {item.completed ? : null} + + {item.completed ? ( + + ) : null}