This commit is contained in:
nikolark committed 2017-11-06 01:20:36 +01:00
1 parent 18936797aa
commit a0e976ee1f
3 files changed
+5 -2

No files matched your search

+1 -1
View File
@@ -67,7 +67,7 @@ export function requestUserData(auth_token) {
dispatch(userDataSuccess(data))
},
data => {
dispatch(userDataFailure('Det funka ikke :-('))
dispatch(userDataFailure(data || {'non_field_errors': ['Kunne ikke hente brukerdata']}))
}
)
}
+1 -1
View File
@@ -91,7 +91,7 @@ export default class Proof extends Component {
disabled={this.props.isChargingMembership}
style={styles.purchaseButton}
>
<NBText>Kjøp medlemskap (200 NOK)</NBText>
<NBText>{`Kjøp medlemskap (${this.props.membershipPrice} NOK)`}</NBText>
</Button>
<View style={styles.purchaseText}>
<Text style={styles.purchaseTextInner}>Medlemskapet er gyldig i ett år</Text>
+3
View File
@@ -12,6 +12,8 @@ stripe.init({
});
class ProofContainer extends Component {
price = 200; // TODO: fetch from backend
constructor(props) {
super(props);
@@ -28,6 +30,7 @@ class ProofContainer extends Component {
chargeError={this.props.chargeError}
onChargePress={this.openStripe}
onLogoutPress={this.props.onLogoutPress}
membershipPrice={this.price}
/>
}