Removed garbage
This commit is contained in:
@ -50,7 +50,7 @@ export default function NavigationBar({ currentPath }: NavigationBarProps) {
|
||||
};
|
||||
}, []);
|
||||
|
||||
// Use the client path instead of the prop path
|
||||
// Use the client path
|
||||
const activePath = currentClientPath.value;
|
||||
|
||||
// Normalize path by removing trailing slashes for consistent comparison
|
||||
@ -58,14 +58,6 @@ export default function NavigationBar({ currentPath }: NavigationBarProps) {
|
||||
? activePath.slice(0, -1)
|
||||
: activePath;
|
||||
|
||||
// Debug logging to see what paths we're getting
|
||||
console.log('NavigationBar Debug:', {
|
||||
propPath: currentPath,
|
||||
clientPath: activePath,
|
||||
normalizedPath: normalizedPath,
|
||||
isResumeMatch: normalizedPath === "/resume"
|
||||
});
|
||||
|
||||
const isPostsPath = (path: string) => {
|
||||
return path.startsWith("/posts") || path.startsWith("/post/");
|
||||
};
|
||||
|
Reference in New Issue
Block a user