Skip to content

feat(admin-panel): wire up sign out actions - #120

Merged
anthonyA1214 merged 1 commit into
mainfrom
feat/admin-panel-sign-out
Nov 27, 2026
Merged

anthonyA1214 merged 1 commit into
mainfrom
feat/admin-panel-sign-out

Conversation

@anthonyA1214

Copy link
Copy Markdown
Member

Ticket

N/A

Description

Connects the previously inactive sign out controls in the sidebar menu and user nav dropdown to the useLogout mutation. A successful logout clears the React Query cache, so cached data from the previous session is discarded, and then navigates to /auth/sign-in. Both components use the same success handling.

Related Issue

N/A

Type of Change

  • Bug fix
  • New feature
  • Chore
  • Refactor
  • Documentation

Image Change

N/A

Replace the no-op click handlers on the sidebar menu button and the
user nav "Sign out" item with the useLogout mutation. On success, clear
the React Query cache and redirect to /auth/sign-in.
@anthonyA1214
anthonyA1214 merged commit de32bfd into main Nov 27, 2026
7 checks passed
@anthonyA1214
anthonyA1214 deleted the feat/admin-panel-sign-out branch November 27, 2026 09:56
@anthonyA1214
anthonyA1214 restored the feat/admin-panel-sign-out branch November 27, 2026 09:56
@anthonyA1214
anthonyA1214 deleted the feat/admin-panel-sign-out branch November 27, 2026 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant