Browse Source

Revert "[+Jordi] #228 - Putting back petitionLink for now"

This reverts commit 17ca3b1a98a1a05bad41c47994b9d434cc1998e0.
Elena Cristina Raffay Iglesias 1 year ago
parent
commit
c58951bd44
1 changed files with 4 additions and 5 deletions
  1. 4 5
      apps/petitions/petitions-app/src/components/PetitionDetails.jsx

+ 4 - 5
apps/petitions/petitions-app/src/components/PetitionDetails.jsx

@@ -70,12 +70,12 @@ const handleErrors = (response) => {
70 70
 };
71 71
 
72 72
 class PetitionDetails extends Component {
73
-  static renderSignButton(petitionLink, decidimLink, id) {
73
+  static renderSignButton(decidimLink, id) {
74 74
     return (<div>
75
-      <AppLink href={`${expoLink}&mobile=true&petitionLink=${petitionLink}&decidimAPIUrl=${decidimLink}&petitionId=${id}`}>
75
+      <AppLink href={`${expoLink}&mobile=true&decidimAPIUrl=${decidimLink}&petitionId=${id}`}>
76 76
         <SignPetitionButton1>Sign with Expo<image src="" /></SignPetitionButton1>
77 77
       </AppLink>
78
-      <AppLink href={`${walletLink}&mobile=true&petitionLink=${petitionLink}&decidimAPIUrl=${decidimLink}&petitionId=${id}`}>
78
+      <AppLink href={`${walletLink}&mobile=true&decidimAPIUrl=${decidimLink}&petitionId=${id}`}>
79 79
         <SignPetitionButton1>Sign with Decode App<image src="" /></SignPetitionButton1>
80 80
       </AppLink>
81 81
     </div>);
@@ -106,7 +106,6 @@ class PetitionDetails extends Component {
106 106
   render() {
107 107
     const petition = this.state.petition;
108 108
     const decidimLink = encodeURIComponent('https://betadddc.alabs.org/api');
109
-    const petitionLink = encodeURIComponent(`${API}/petitions/${this.props.id}`);
110 109
 
111 110
     return (
112 111
       <Main>
@@ -131,7 +130,7 @@ class PetitionDetails extends Component {
131 130
               </PetitionDetailsContent>
132 131
               <SignPetition>
133 132
                 {petition && petition.isOpen &&
134
-                PetitionDetails.renderSignButton(petitionLink, decidimLink, this.props.id)}
133
+                PetitionDetails.renderSignButton(decidimLink, this.props.id)}
135 134
                 {petition && !petition.isOpen && this.renderResults()}
136 135
               </SignPetition>
137 136
             </PetitionDetailsCard>