Update MirrorList
diff --git a/frontend/src/components/WelcomeScreen.tsx b/frontend/src/components/WelcomeScreen.tsx
index 8a4db40..6c4ee84 100644
--- a/frontend/src/components/WelcomeScreen.tsx
+++ b/frontend/src/components/WelcomeScreen.tsx
@@ -23,9 +23,9 @@ const WelcomeScreen: React.FC
= ({ goToScreen, isDarkMode }) => {
const [modalVisible, setModalVisible] = useState(false);
const [modalTitle, setModalTitle] = useState("");
const [modalMessage, setModalMessage] = useState("");
- const [loading, setLoading] = useState(false);
const [isInstalled, setIsInstalled] = useState(false);
const [isActiveScreenRes, setIsActiveScreenRes] = useState(false);
+ const [isUpdating, setIsUpdating] = useState(false);
const [isActiveInstall, setIsActiveInstall] = useState(false);
useEffect(() => {
@@ -47,17 +47,14 @@ const WelcomeScreen: React.FC = ({ goToScreen, isDarkMode }) => {
};
const handleUpdateSystem = async () => {
- setLoading(true);
+ setIsUpdating(true);
try {
await UpdateSystem();
- setModalTitle("Success");
- setModalMessage("System updated successfully.");
} catch (error) {
setModalTitle("Error");
setModalMessage("Failed to update the system.");
} finally {
- setLoading(false);
- setModalVisible(true);
+ setIsUpdating(false);
}
};
@@ -74,7 +71,13 @@ const WelcomeScreen: React.FC = ({ goToScreen, isDarkMode }) => {
};
return (
-
+
Welcome to ALG
@@ -94,11 +97,11 @@ const WelcomeScreen: React.FC = ({ goToScreen, isDarkMode }) => {