feat: update RefreshControl mocks in tests and improve error handling in useChangePassword hook

This commit is contained in:
imeepos
2026-01-27 17:18:54 +08:00
parent 8f00d4644a
commit cd1a4f6841
13 changed files with 49 additions and 33 deletions

View File

@@ -2,7 +2,7 @@ import React from 'react'
import { View, Text, Pressable, ScrollView, StyleSheet } from 'react-native'
import { Image } from 'expo-image'
interface Activity {
export interface Activity {
id: string
title: string
titleEn?: string
@@ -20,7 +20,7 @@ interface HeroSliderProps {
export function HeroSlider({
activities,
onActivityPress,
}: HeroSliderProps): JSX.Element | null {
}: HeroSliderProps): React.ReactNode | null {
// 空数据时返回 null
if (!activities || activities.length === 0) {
return null