Fakultas Ilmu Komputer UI

index.tsx 926 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import React, { FC } from 'react';
import { useNavigation } from '@react-navigation/native';
import { Button } from 'react-native-elements';

import * as ROUTES from 'constants/routes';
import { ReadOnlyNutritionistRecommendation } from 'scenes/questionnaire/NutritionistRecommendation';
import { Section } from 'components/layout';
import { typographyStyles } from 'styles';

import { styles } from './styles';

const ClientProfile: FC = () => {
  const navigation = useNavigation();

  return (
    <ReadOnlyNutritionistRecommendation>
      <Section>
        <Button
          title="ubah profil"
          type="outline"
          onPress={() => navigation.navigate(ROUTES.extendedQuestionnaire)}
          buttonStyle={styles.buttonStyle}
          titleStyle={[typographyStyles.overlineBig, styles.titleStyle]}
        />
      </Section>
    </ReadOnlyNutritionistRecommendation>
  );
};

export default ClientProfile;