Skip to content

Commit

Permalink
implementando issues #25, #26 e #27
Browse files Browse the repository at this point in the history
  • Loading branch information
basilioarth committed Jun 26, 2021
1 parent 88416d4 commit bd1dd1c
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 6 deletions.
9 changes: 9 additions & 0 deletions frontend/src/views/acompanhamento/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import React from 'react';
import { createStackNavigator } from '@react-navigation/stack';
import Client from './views/Client';
import AcompanharAntecedentes from './views/antecedentes';
import AcompanharComportamento from './views/comportamento';
import AcompanharConsequencias from './views/consequencias';

const StackSettings = createStackNavigator<RoutesList>();

Expand All @@ -9,10 +12,16 @@ export default function Acompanhamento(props: any) {
return (
<StackSettings.Navigator screenOptions={{ headerShown: false }}>
<StackSettings.Screen name="Client" component={Client} initialParams={props.route.params}/>
<StackSettings.Screen name="AcompanharAntecedentes" component={AcompanharAntecedentes}/>
<StackSettings.Screen name="AcompanharComportamento" component={AcompanharComportamento}/>
<StackSettings.Screen name="AcompanharConsequencias" component={AcompanharConsequencias}/>
</StackSettings.Navigator>
);
}

type RoutesList = {
Client: undefined
AcompanharAntecedentes: undefined
AcompanharComportamento: undefined
AcompanharConsequencias: undefined
};
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function AcompanharAntecedentes({ navigation }: any) {

return (
<View style={styles.generalView}>
<TouchableOpacity style={styles.goBack} onPress={() => navigation.navigate('Profile')}>
<TouchableOpacity style={styles.goBack} onPress={() => navigation.navigate('Client')}>
<MaterialCommunityIcons style={styles.goBackIcon} name="chevron-left" color={'#FCFCFF'} size={iconSize} />
<Text style={styles.goBackText}>Voltar</Text>
</TouchableOpacity>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ const Client = (props: any) => {
const profilePicture = require('../../../../assets/profile.png');

function onPressDelete(id:string){}
function onPressCard(){}
function onPressCard(){
navigation.navigate('AcompanharComportamento');
}

const staticRegisters = [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function AcompanharComportamento({ navigation }: any) {

return (
<View style={styles.generalView}>
<TouchableOpacity style={styles.goBack} onPress={() => navigation.goBack()}>
<TouchableOpacity style={styles.goBack} onPress={() => navigation.navigate('Client')}>
<MaterialCommunityIcons style={styles.goBackIcon} name="chevron-left" color={'#FCFCFF'} size={iconSize} />
<Text style={styles.goBackText}>Voltar</Text>
</TouchableOpacity>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityI
const SCREEN_WIDTH = Dimensions.get("window").width;
const iconSize = SCREEN_WIDTH * 0.075;

export default function AcompanharAntecedentes({ navigation }: any) {
export default function AcompanharConsequencias({ navigation }: any) {

const [questao1, onChangeQuestao1] = useState("Fui para casa.");
const [questao2, onChangeQuestao2] = useState("Comemorei.");
Expand All @@ -24,7 +24,7 @@ export default function AcompanharAntecedentes({ navigation }: any) {

return (
<View style={styles.generalView}>
<TouchableOpacity style={styles.goBack} onPress={() => navigation.navigate('Profile')}>
<TouchableOpacity style={styles.goBack} onPress={() => navigation.navigate('Client')}>
<MaterialCommunityIcons style={styles.goBackIcon} name="chevron-left" color={'#FCFCFF'} size={iconSize} />
<Text style={styles.goBackText}>Voltar</Text>
</TouchableOpacity>
Expand Down Expand Up @@ -91,7 +91,7 @@ export default function AcompanharAntecedentes({ navigation }: any) {
<MaterialCommunityIcons style={styles.previousIcon} name="chevron-left" color={'#FCFCFF'} size={iconSize} />
<Text style={styles.previousText}>Anterior</Text>
</TouchableOpacity>
<TouchableOpacity style={styles.continueContainer} onPress={() => navigation.navigate('Profile')}>
<TouchableOpacity style={styles.continueContainer} onPress={() => navigation.navigate('Client')}>
<Text style={styles.continueText}>Fim</Text>
</TouchableOpacity>
</View>
Expand Down

0 comments on commit bd1dd1c

Please sign in to comment.