主要变更: - 重构应用界面:优化首页、登录、认证流程 - 新增用户档案模块:包含完整的档案管理组件 - 优化路由结构:重新组织页面布局和导航 - 改进API集成:新增活动、内容分类等API模块 - 删除冗余组件:清理不必要的文件和依赖 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
41 lines
942 B
TypeScript
41 lines
942 B
TypeScript
import React from 'react';
|
|
import { View, ActivityIndicator } from 'react-native';
|
|
import { ThemedText } from '@/components/themed-text';
|
|
import { useColorScheme } from '@/hooks/use-color-scheme';
|
|
|
|
export function ProfileLoadingState() {
|
|
const colorScheme = useColorScheme();
|
|
const palette = colorScheme === 'dark' ? darkPalette : lightPalette;
|
|
|
|
return (
|
|
<View style={styles.loadingWrap}>
|
|
<ActivityIndicator size="large" color={palette.accent} />
|
|
<ThemedText style={[styles.loadingText, { color: palette.textSecondary }]}>
|
|
Loading content...
|
|
</ThemedText>
|
|
</View>
|
|
);
|
|
}
|
|
|
|
const darkPalette = {
|
|
textSecondary: '#8E9098',
|
|
accent: '#B7FF2F',
|
|
};
|
|
|
|
const lightPalette = {
|
|
textSecondary: '#5E6474',
|
|
accent: '#405CFF',
|
|
};
|
|
|
|
const styles = {
|
|
loadingWrap: {
|
|
alignItems: 'center' as const,
|
|
paddingTop: 48,
|
|
paddingBottom: 48,
|
|
},
|
|
loadingText: {
|
|
marginTop: 12,
|
|
fontSize: 14,
|
|
},
|
|
};
|