Archived
Minor
This commit is contained in:
1 parent
18936797aa
commit
a0e976ee1f
3 files changed
+5
-2
No files matched your search
+1
-1
@@ -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']}))
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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}
|
||||
/>
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user