minir fix

This commit is contained in:
dimitar committed 2025-11-19 05:07:14 +01:00
1 parent a87b94219d
commit 4909815807
5 files changed
+14 -4

No files matched your search

+3
View File
@@ -75,6 +75,8 @@ export default function HomeScreen() {
<Ionicons name="chevron-forward" size={20} color="#9ca3af" />
</TouchableOpacity>
<View style={styles.actionButton}>
<View style={styles.actionIcon}>
<Ionicons name="log-in-outline" size={24} color="#2563eb" />
@@ -88,6 +90,7 @@ export default function HomeScreen() {
<Ionicons name="chevron-forward" size={20} color="#9ca3af" />
</View>
<View style={styles.actionButton}>
<View style={styles.actionIcon}>
<Ionicons name="calendar-outline" size={24} color="#10b981" />
+4 -3
View File
@@ -13,6 +13,7 @@ import { useAuth } from "@clerk/clerk-expo";
import { Ionicons } from "@expo/vector-icons";
import { Input } from "../components/Input";
import { Picker } from "../components/Picker";
import { API_BASE_URL } from "../config/api";
interface FitnessProfileData {
height?: number;
@@ -64,7 +65,7 @@ export default function FitnessProfileScreen() {
try {
setFetchingProfile(true);
const token = await getToken();
const apiUrl = process.env.EXPO_PUBLIC_API_URL || "http://localhost:3000";
const apiUrl = `${API_BASE_URL}` || "http://localhost:3000";
const response = await fetch(`${apiUrl}/api/fitness-profile`, {
headers: {
Authorization: `Bearer ${token}`,
@@ -98,9 +99,9 @@ export default function FitnessProfileScreen() {
try {
setLoading(true);
const token = await getToken();
const apiUrl = process.env.EXPO_PUBLIC_API_URL || "http://localhost:3000";
const apiUrl = `${API_BASE_URL}/api/fitness-profile` || "http://localhost:3000";
const response = await fetch(`${apiUrl}/api/fitness-profile`, {
const response = await fetch(`${apiUrl}`, {
method: "POST",
headers: {
"Content-Type": "application/json",