|
@@ -1,9 +1,6 @@
|
1
|
1
|
import { IonButton, IonContent, IonIcon, IonItem, IonText } from "@ionic/react";
|
2
|
2
|
import { CallNumber } from "@awesome-cordova-plugins/call-number";
|
3
|
|
-import {
|
4
|
|
- call,
|
5
|
|
- mailOpen
|
6
|
|
- } from "ionicons/icons";
|
|
3
|
+import { call, mailOpen } from "ionicons/icons";
|
7
|
4
|
|
8
|
5
|
const ButtonComponent: React.FC<{
|
9
|
6
|
body: string;
|
|
@@ -11,18 +8,30 @@ const ButtonComponent: React.FC<{
|
11
|
8
|
const body = props.body;
|
12
|
9
|
return (
|
13
|
10
|
<IonText>
|
14
|
|
- <IonButton expand="block"
|
|
11
|
+ <IonButton
|
|
12
|
+ expand="block"
|
15
|
13
|
onClick={() => {
|
16
|
|
- CallNumber.callNumber("7876247846", true);
|
17
|
|
- alert("testing is this works");
|
|
14
|
+ CallNumber.callNumber("7870000000", true);
|
18
|
15
|
}}
|
19
|
16
|
>
|
20
|
|
- <IonIcon slot="start" icon={call}> </IonIcon>
|
|
17
|
+ <IonIcon slot="start" icon={call}>
|
|
18
|
+ {" "}
|
|
19
|
+ </IonIcon>
|
21
|
20
|
Llamada
|
22
|
21
|
</IonButton>
|
23
|
|
- <a href={"mailto:eliamruiz2027@gmail.com?cc=eliam.ruiz@upr.edu,&subject=Testing Ionic button&body=" + body + ""}>
|
|
22
|
+ <a
|
|
23
|
+ href={
|
|
24
|
+ "mailto:example@upr.edu?cc=example@gmail.com,&subject=Testing Ionic button&body=" +
|
|
25
|
+ body +
|
|
26
|
+ ""
|
|
27
|
+ }
|
|
28
|
+ >
|
24
|
29
|
<IonButton expand="block">
|
25
|
|
- <IonIcon slot="start" icon={mailOpen}> </IonIcon> Correo Electrónico</IonButton>
|
|
30
|
+ <IonIcon slot="start" icon={mailOpen}>
|
|
31
|
+ {" "}
|
|
32
|
+ </IonIcon>{" "}
|
|
33
|
+ Correo Electrónico
|
|
34
|
+ </IonButton>
|
26
|
35
|
</a>
|
27
|
36
|
</IonText>
|
28
|
37
|
);
|