feat: update RefreshControl mocks in tests and improve error handling in useChangePassword hook
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user