Implement logout functionality for account page

- Create LogoutButton client component using signOut from next-auth/react
- Update account page to use LogoutButton instead of static link
- Convert account page to async server component for proper i18n
- Add locale-aware routing for settings link
- Add logging-out-message translations (EN/HR)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Knee Cola
2025-11-25 21:11:41 +01:00
parent 572466497b
commit 42040c7918
4 changed files with 31 additions and 8 deletions

View File

@@ -5,7 +5,8 @@
"account-page": {
"title": "Korisnički račun",
"settings-button": "Korisničke postavke",
"logout-button": "Odjava"
"logout-button": "Odjava",
"logging-out-message": "Odjavljujem se..."
},
"PageFooter": {
"app-description": "Preuzmite kontrolu nad svojim režijama!",