Refactor code and update dependencies configuration
This commit includes reorganizing dependencies in 'package.json' for better readability. It also refactors code associated with user and personal account data along with animations for AvatarFallback and profile name display. Additionally, the 'next' package version has been updated to '14.2.0-canary.56'. Some changes have been made for minor corrections and enhancements in the scripts.
This commit is contained in:
@@ -84,9 +84,13 @@ export function AuthChangeListener({
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines if a given path is a private route.
|
||||
*
|
||||
* @param {string} path - The path to check.
|
||||
*/
|
||||
function isPrivateRoute(path: string) {
|
||||
// TODO: use config
|
||||
const prefixes = ['/home', '/admin', '/password-reset'];
|
||||
const prefixes = ['/home', '/admin', '/join', '/update-password'];
|
||||
|
||||
return prefixes.some((prefix) => path.startsWith(prefix));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user