Fakultas Ilmu Komputer UI

Commit ec2fae03 authored by wulanmantiri's avatar wulanmantiri
Browse files

[REFACTOR] Fix bugs

parent d5965d09
Pipeline #84199 passed with stages
in 10 minutes and 33 seconds
...@@ -19,6 +19,7 @@ import { setCache, getCache } from 'utils/cache'; ...@@ -19,6 +19,7 @@ import { setCache, getCache } from 'utils/cache';
import { PricingList } from './components'; import { PricingList } from './components';
import { initialValues, getRecommendedPrograms } from './schema'; import { initialValues, getRecommendedPrograms } from './schema';
import { UserContext } from 'provider'; import { UserContext } from 'provider';
import { TransactionStatus } from 'services/payment/models';
const ChoosePlan: FC = () => { const ChoosePlan: FC = () => {
const navigation = useNavigation(); const navigation = useNavigation();
...@@ -47,6 +48,7 @@ const ChoosePlan: FC = () => { ...@@ -47,6 +48,7 @@ const ChoosePlan: FC = () => {
setUser({ setUser({
...user, ...user,
cart_id: cartId, cart_id: cartId,
transaction_status: TransactionStatus.UNPAID,
}); });
navigation.navigate(ROUTES.checkout); navigation.navigate(ROUTES.checkout);
} else { } else {
......
import { StyleSheet } from 'react-native'; import { StyleSheet } from 'react-native';
import { colors, typography } from 'styles'; import { colors, typography, layoutStyles } from 'styles';
export const styles = StyleSheet.create({ export const styles = StyleSheet.create({
container: { container: {
flex: 1, flex: 1,
justifyContent: 'center', justifyContent: 'center',
alignItems: 'center', alignItems: 'center',
...layoutStyles,
paddingHorizontal: 30,
}, },
nutritionist: { nutritionist: {
textAlign: 'center', textAlign: 'center',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment