diff --git a/src/screens/diet/DietScreen.tsx b/src/screens/diet/DietScreen.tsx index f4b0d28..ecd15dc 100644 --- a/src/screens/diet/DietScreen.tsx +++ b/src/screens/diet/DietScreen.tsx @@ -991,18 +991,27 @@ const DietScreen = ({navigation, route}: any) => { }} activeOpacity={0.7} > - - + + {d.getDate()} @@ -1093,14 +1102,14 @@ const DietScreen = ({navigation, route}: any) => { { @@ -4106,15 +4114,15 @@ const ExerciseScreen = ({ navigation }: any) => { {label} @@ -5119,6 +5127,9 @@ const styles = StyleSheet.create({ justifyContent: "center", alignItems: "center", }, + monthDateBadgeSelected: { + backgroundColor: "#e3ff7c", + }, monthDateBadgeToday: { backgroundColor: "#ffffff", }, @@ -5132,6 +5143,9 @@ const styles = StyleSheet.create({ monthDateTextToday: { color: "#000", }, + monthDateTextSelected: { + color: "#000", + }, monthDateTextMuted: { color: "#777777", }, @@ -5161,10 +5175,11 @@ const styles = StyleSheet.create({ backgroundColor: "transparent", }, calendarNumberSelected: { - backgroundColor: "#ffffff", + backgroundColor: "#e3ff7c", + borderRadius: 14, }, calendarNumberToday: { - backgroundColor: "#e3ff7c", + backgroundColor: "#ffffff", }, calendarNumberText: { fontSize: 16, diff --git a/src/screens/pay/PaymentSuccessScreen.tsx b/src/screens/pay/PaymentSuccessScreen.tsx index 82415d2..44f8f76 100644 --- a/src/screens/pay/PaymentSuccessScreen.tsx +++ b/src/screens/pay/PaymentSuccessScreen.tsx @@ -1,13 +1,13 @@ // src/screens/pay/PaymentSuccessScreen.tsx import React, { useEffect, useState } from "react"; -import { View, Text, StyleSheet, TouchableOpacity, Alert } from "react-native"; +import { View, Text, StyleSheet, Alert } from "react-native"; import { SafeAreaView } from "react-native-safe-area-context"; import { Ionicons as Icon } from "@expo/vector-icons"; import { LinearGradient } from "expo-linear-gradient"; import { useNavigation } from "@react-navigation/native"; import AsyncStorage from "@react-native-async-storage/async-storage"; import { useRoute } from "@react-navigation/native"; -import { paymentAPI, authAPI } from "../../services"; +import { paymentAPI } from "../../services"; import { CommonActions } from "@react-navigation/native"; const PaymentSuccessScreen = () => { @@ -44,24 +44,19 @@ const PaymentSuccessScreen = () => { await AsyncStorage.removeItem("testMembershipType"); console.log("✅ 로컬 PREMIUM 저장 완료"); - // 4. ✅ 로그아웃 처리 - await AsyncStorage.removeItem("accessToken"); - await AsyncStorage.removeItem("refreshToken"); - console.log("✅ 로그아웃 완료"); - - // 5. 안내 메시지 + 로그인 화면으로 이동 + // 4. 안내 메시지 + 홈으로 이동 Alert.alert( "업그레이드 완료! 🎉", - "프리미엄 회원이 되셨습니다!\n더 나은 서비스를 위해 다시 로그인해주세요.", + "프리미엄 회원이 되셨습니다!\n모든 기능을 자유롭게 이용하세요!", [ { - text: "로그인하러 가기", + text: "홈으로 가기", onPress: () => { - // ✅ 스택 초기화하고 Login으로 이동 + // ✅ 스택 초기화하고 Main(홈)으로 이동 navigation.dispatch( CommonActions.reset({ index: 0, - routes: [{ name: "Login" }], + routes: [{ name: "Main" }], }) ); }, @@ -91,22 +86,17 @@ const PaymentSuccessScreen = () => { await AsyncStorage.removeItem("testMembershipType"); console.log("✅ 로컬 PREMIUM 저장 완료"); - // ✅ 로그아웃 - await AsyncStorage.removeItem("accessToken"); - await AsyncStorage.removeItem("refreshToken"); - console.log("✅ 로그아웃 완료"); - Alert.alert( "업그레이드 완료! 🎉", - "프리미엄 회원이 되셨습니다!\n더 나은 서비스를 위해 다시 로그인해주세요.", + "프리미엄 회원이 되셨습니다!\n모든 기능을 자유롭게 이용하세요!", [ { - text: "로그인하러 가기", + text: "홈으로 가기", onPress: () => { navigation.dispatch( CommonActions.reset({ index: 0, - routes: [{ name: "Login" }], + routes: [{ name: "Main" }], }) ); },