Profile saving works

This commit is contained in:
AG
2025-11-20 22:56:38 +02:00
parent 17ae81d5d9
commit 84417847fd
6 changed files with 39 additions and 11 deletions

View File

@@ -69,6 +69,10 @@ function App() {
setLanguage(lang);
};
const handleUserUpdate = (updatedUser: User) => {
setCurrentUser(updatedUser);
};
const handleStartSession = (plan?: WorkoutPlan) => {
if (!currentUser) return;
@@ -179,6 +183,7 @@ function App() {
onLogout={handleLogout}
lang={language}
onLanguageChange={handleLanguageChange}
onUserUpdate={handleUserUpdate}
/>
)}
</div>