Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect for specific dashboard after login #229

Merged
merged 3 commits into from
Dec 8, 2024

Conversation

Disura-Randunu
Copy link
Contributor

@Disura-Randunu Disura-Randunu commented Dec 7, 2024

Purpose

The purpose of this PR is to fix #192

Goals

To redirect for the specific dashboard based on the user type.

Approach

Used react useEffect to listen on the userContext. After succesfull login attempt, navigating to relevant dashboard based on the logged in user's type

Screenshots

Checklist

  • This PR doesn't commit any keys, passwords, tokens, usernames, or other secrets.
  • I have read and understood the development best practices guidelines ( http://bit.ly/sef-best-practices )
  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation

Related PRs

Test environment

Learning

@Disura-Randunu
Copy link
Contributor Author

@anjula-sack Updated the PR. Working with GoogleAuth

@anjula-sack anjula-sack merged commit 8814991 into sef-global:development Dec 8, 2024
1 check passed
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.

Mentors and mentees should be redirected to there dashboards after login.
2 participants