by codex: feat. General Improvements
CodexBar Mobile Build / build-android (push) Successful in 21m9s
CodexBar Mobile Build / release (push) Successful in 11s

This commit is contained in:
2026-06-25 14:27:58 +02:00
parent 9dd17cf565
commit 2c31be11c4
33 changed files with 1217 additions and 296 deletions
+3 -2
View File
@@ -1,12 +1,13 @@
import { View } from "react-native";
import { PROGRESS_THRESHOLDS } from "@/lib/constants";
interface ProgressBarProps {
percent: number;
}
function getBarColor(percent: number): string {
if (percent >= 85) return "bg-red-500";
if (percent >= 60) return "bg-yellow-400";
if (percent >= PROGRESS_THRESHOLDS.danger) return "bg-red-500";
if (percent >= PROGRESS_THRESHOLDS.warning) return "bg-yellow-400";
return "bg-green-500";
}