Profile saving works
This commit is contained in:
5
App.tsx
5
App.tsx
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user