Browse Source

Chnaged call and email values to dummy values

eliam.ruiz 1 year ago
parent
commit
fcf1437269
1 changed files with 19 additions and 10 deletions
  1. 19
    10
      src/components/ButtonComponent.tsx

+ 19
- 10
src/components/ButtonComponent.tsx View File

1
 import { IonButton, IonContent, IonIcon, IonItem, IonText } from "@ionic/react";
1
 import { IonButton, IonContent, IonIcon, IonItem, IonText } from "@ionic/react";
2
 import { CallNumber } from "@awesome-cordova-plugins/call-number";
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
 const ButtonComponent: React.FC<{
5
 const ButtonComponent: React.FC<{
9
   body: string;
6
   body: string;
11
   const body = props.body;
8
   const body = props.body;
12
   return (
9
   return (
13
     <IonText>
10
     <IonText>
14
-      <IonButton expand="block" 
11
+      <IonButton
12
+        expand="block"
15
         onClick={() => {
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
         Llamada
20
         Llamada
22
       </IonButton>
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
         <IonButton expand="block">
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
       </a>
35
       </a>
27
     </IonText>
36
     </IonText>
28
   );
37
   );