Skip to content

Commit

Permalink
Merge pull request #238 from mia-ajuda/234-NewTutorials
Browse files Browse the repository at this point in the history
234 - Novos tutoriais
  • Loading branch information
sudjoao authored Jul 8, 2023
2 parents 4e3d712 + 4b253cb commit 528d51f
Show file tree
Hide file tree
Showing 21 changed files with 400 additions and 437 deletions.
45 changes: 45 additions & 0 deletions app/assets/images/TutorialImages/Step1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
45 changes: 45 additions & 0 deletions app/assets/images/TutorialImages/Step2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 53 additions & 0 deletions app/assets/images/TutorialImages/Step3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import emergencyNumbers from '../../../docs/FAQ/EmergencyNumbers';
import { ModalComponent } from '../modal';

export default function EmergencyNumbers({ visible, setVisible }) {
// TODO: replace it later with a new modal
return (
<ModalComponent
visible={visible}
Expand Down
135 changes: 0 additions & 135 deletions app/src/components/FAQModals/HowToUseModal/index.js

This file was deleted.

68 changes: 0 additions & 68 deletions app/src/components/FAQModals/HowToUseModal/styles.js

This file was deleted.

This file was deleted.

This file was deleted.

54 changes: 0 additions & 54 deletions app/src/components/FAQModals/modal.js

This file was deleted.

42 changes: 42 additions & 0 deletions app/src/components/FAQModals/modal.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import React from 'react';
import { Modal, ScrollView, Text, View } from 'react-native';
import styles from './styles';
import { FloatingIconButton } from '../molecules/FloatingIconButton';

export const ModalComponent = (props) => {
return (
<Modal
visible={props.visible}
transparent
onRequestClose={() => props.setVisible(false)}
animationType="fade"
>
<View style={styles.modalContainer}>
<View style={styles.modalContent}>
<FloatingIconButton
iconName={'close'}
onPress={() => {
props.setVisible(false);
}}
/>
<ScrollView indicatorStyle="white">
{props.list.map((numbers) => {
return (
<View key={numbers.id}>
<Text style={styles.title}>
{' '}
{numbers.number}{' '}
</Text>
<Text style={styles.description}>
{' '}
{numbers.description}{' '}
</Text>
</View>
);
})}
</ScrollView>
</View>
</View>
</Modal>
);
};
Loading

0 comments on commit 528d51f

Please sign in to comment.