Browse Source

[+Raul] Add button for opening with native app

Elena Cristina Raffay Iglesias 1 year ago
parent
commit
b46e585a40
1 changed files with 3 additions and 17 deletions
  1. 3 17
      apps/petitions/petitions-app/src/components/PetitionDetails.jsx

+ 3 - 17
apps/petitions/petitions-app/src/components/PetitionDetails.jsx

@@ -62,18 +62,6 @@ const AppLink = styled.a`
62 62
     text-decoration: none;
63 63
 `;
64 64
 
65
-// const QRContainer = styled.div`
66
-//     display: flex;
67
-//     flex-direction: column;
68
-//     align-items: center;
69
-// `;
70
-//
71
-// const ScanInstructions = styled.p`
72
-//   text-align: center;
73
-//   padding-top: 1rem;
74
-// `;
75
-
76
-
77 65
 const handleErrors = (response) => {
78 66
   if (!response.ok) {
79 67
     throw Error(response.statusText);
@@ -85,13 +73,11 @@ class PetitionDetails extends Component {
85 73
   static renderSignButton(petitionLink, id) {
86 74
     return (<div>
87 75
       <AppLink href={`${expoLink}&mobile=true&petitionLink=${petitionLink}&decidimAPIUrl=https://meta.decidim.org/api&petitionId=${id}`}>
76
+        <SignPetitionButton1>Sign with Expo<image src="" /></SignPetitionButton1>
77
+      </AppLink>
78
+      <AppLink href={`${walletLink}&mobile=true&${petitionLink}&decidimAPIUrl=https://meta.decidim.org/api&petitionId=${id}`}>
88 79
         <SignPetitionButton1>Sign with Decode App<image src="" /></SignPetitionButton1>
89 80
       </AppLink>
90
-      {/* hiding QR for user testing */}
91
-      {/* <QRContainer> */}
92
-      {/* <ScanInstructions>Use wallet to scan QR code</ScanInstructions> */}
93
-      {/* <QRCode value={`${expoLink}&petitionLink=${petitionLink}`} /> */}
94
-      {/* </QRContainer> */}
95 81
     </div>);
96 82
   }
97 83