Skip to content
TypeScript

fix(mobile): rotate snoozed and settled shelf chevrons (#7276)

Lars Nieuwenhuis33a8b07dd3b4
diff --git a/apps/mobile/src/features/threads/thread-list-v2-items.tsx b/apps/mobile/src/features/threads/thread-list-v2-items.tsx
index 86d442dfed9..0906bab4deb 100644
--- a/apps/mobile/src/features/threads/thread-list-v2-items.tsx
+++ b/apps/mobile/src/features/threads/thread-list-v2-items.tsx
@@ -135,10 +135,11 @@ export const ThreadListV2SnoozedShelfHeader = memo(function ThreadListV2SnoozedS
</Text>
<View className="h-px flex-1 bg-blue-500/20 dark:bg-blue-400/15" />
<SymbolView
- name={props.expanded ? "chevron.up" : "chevron.down"}
+ name="chevron.down"
size={10}
tintColor={colorScheme === "dark" ? SNOOZE_ACCENT_DARK : SNOOZE_ACCENT_LIGHT}
type="monochrome"
+ style={{ transform: [{ rotate: props.expanded ? "180deg" : "0deg" }] }}
/>
</Pressable>
);
@@ -171,10 +172,11 @@ export const ThreadListV2SettledShelfHeader = memo(function ThreadListV2SettledS
</Text>
<View className="h-px flex-1 bg-border" />
<SymbolView
- name={props.expanded ? "chevron.up" : "chevron.down"}
+ name="chevron.down"
size={10}
tintColor={mutedColor}
type="monochrome"
+ style={{ transform: [{ rotate: props.expanded ? "180deg" : "0deg" }] }}
/>
</Pressable>
);