Nantes Université

Skip to content
Extraits de code Groupes Projets
Valider eed4f1f1 rédigé par Romain GOURAUD's avatar Romain GOURAUD
Parcourir les fichiers

modification import des pages mail/report

parent 8399b4b3
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
import React, { useState, useEffect, Dispatch, SetStateAction, useRef } from 'react';
import { Alert, Modal, StyleSheet, Text, Pressable, View, Image, Button, Linking, TouchableOpacity, FlatList, ScrollView, ImageBackground } from 'react-native';
import React from 'react';
import { StyleSheet, Text, Pressable, View, ImageBackground } from 'react-native';
import { RootStackParamList } from '@navigation/RootStackParamList';
import type { NativeStackScreenProps } from '@react-navigation/native-stack';
import useActualPatient from '@hooks/useActualPatient';
import { htmlmailtemplate } from './Mailer'
import superHtmlReportBuiler from './HtmlReportBuilder';
import EncadreLegend from './Legend'
import { ReportBuilder } from './ReportBuilder'
type PrescriptionIndexProps = NativeStackScreenProps<RootStackParamList, 'Email'>
export default function MailIndex({ navigation, route }: PrescriptionIndexProps) {
const { prescription } = route.params
......
import { logo } from './Logo';
import superHtmlReportBuiler from './HtmlReportBuilder';
import RNHTMLtoPDF from 'react-native-html-to-pdf';
import RNFS from 'react-native-fs';
import Mailer from 'react-native-mail';
import Permissions from 'react-native-permissions';
export const htmlmailtemplate = async (prescription: PrescriptionInterface, patient: PatientInterface) => {
......@@ -85,10 +85,7 @@ export const htmlmailtemplate = async (prescription: PrescriptionInterface, pati
</p>
</div>
</body>
`;
</body>`;
const options = {
html: htmlContent,
......@@ -99,7 +96,7 @@ export const htmlmailtemplate = async (prescription: PrescriptionInterface, pati
const pdf = await RNHTMLtoPDF.convert(options);
const pdfFilePath = pdf.filePath;
let email = prescription.doctor?.mail || "";
......
import { generateCalendar } from "./intakecalculator";
import { generateCalendar } from "./IntakeCalculator";
const htmlReportBuilder = (week: string[], num: string) => {
......
import React, { useState, useEffect, Dispatch, SetStateAction, useRef } from 'react';
import { Alert, Modal, StyleSheet, Text, Pressable, View, Image, Button, Linking, TouchableOpacity, FlatList, ScrollView, ImageBackground } from 'react-native';
import { generateCalendar } from './intakecalculator'
import React from 'react';
import { StyleSheet, Text, View, FlatList } from 'react-native';
import { generateCalendar } from './IntakeCalculator'
const RenderWeek = (week: string[], num: string) => {
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter