Commit Graph
6 Commits
Author SHA1 Message Date
hamedandClaude Opus 4.8 83b2ec21b7 fix(header): detect login state live from client cookie
The header decided between profile and login button only from the
server-passed logged prop (read once via cookies() in StLayout), so a
user who logged in client-side still saw ورود | ثبت نام until a hard
reload. Seed isLogged from the server prop (correct first paint, no
hydration mismatch) then sync it from the access_token cookie on mount
and on every route change, so login/logout reflect immediately.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-15 18:41:58 +03:30
Ehsan dafeebc54f validation & change deisng sidebar dashboard & add menu to profile & handle menu item in profile & add api 2025-06-03 00:50:10 +03:30
Ehsan e292176a61 handle limit page dashboard & change header profile user & get data from api in page clinics & clinic item and doctor item 2025-06-01 01:08:25 +03:30
Ehsan 254d5d4ebd change format all file 2025-05-18 01:18:35 +03:30
Ehsan 1b2f579d0d almost change all layouts to ssr 2025-05-11 15:16:51 +03:30
Ehsan e4771c4e2f last update 2025-05-11 12:13:23 +03:30