chore: UI and i18n updates — HomeScreen, ProfileScreen, Documents, Generate and locales
This commit is contained in:
@@ -1,50 +1 @@
|
||||
import React from 'react';
|
||||
import { StyleSheet, Text, View } from 'react-native';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { NativeStackScreenProps } from '@react-navigation/native-stack';
|
||||
import { Screen } from '../components/Screen';
|
||||
import { SectionCard } from '../components/SectionCard';
|
||||
import { ListButton } from '../components/ListButton';
|
||||
import { TasksStackParamList } from '../types/navigation';
|
||||
import { TaskHeader } from '../components/TaskHeader';
|
||||
import { colors } from '../theme/colors';
|
||||
|
||||
type Props = NativeStackScreenProps<TasksStackParamList, 'CRM'>;
|
||||
|
||||
export const CRMScreen: React.FC<Props> = ({ navigation }) => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
return (
|
||||
<Screen>
|
||||
<TaskHeader
|
||||
title={t('crm')}
|
||||
caption={t('signalStudio')}
|
||||
active="CRM"
|
||||
onNavigate={screen => navigation.navigate(screen)}
|
||||
/>
|
||||
|
||||
<SectionCard title={t('aiMisceles')} description={t('leadsMonitor')}>
|
||||
<Text style={styles.cardBody}>
|
||||
{t('pipelineExposure')}
|
||||
</Text>
|
||||
</SectionCard>
|
||||
|
||||
<View style={styles.actionsList}>
|
||||
<ListButton label={t('aiInsights')} />
|
||||
<ListButton label={t('recommendations')} />
|
||||
<ListButton label={t('playbooks')} />
|
||||
</View>
|
||||
</Screen>
|
||||
);
|
||||
};
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
cardBody: {
|
||||
fontSize: 14,
|
||||
color: colors.textSecondary,
|
||||
lineHeight: 22,
|
||||
},
|
||||
actionsList: {
|
||||
gap: 14,
|
||||
},
|
||||
});
|
||||
export { TasksScreen as CRMScreen } from './TasksScreen';
|
||||
|
||||
Reference in New Issue
Block a user