Skip to content

Commit

Permalink
fix: assets prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnai9287 committed Sep 15, 2024
1 parent 68e8b6e commit d228e3a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/components/resume-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ export const ResumeCard = ({
}: ResumeCardProps) => {

const pathname = usePathname ();
console.log('pathname', pathname);
const assetsPrefix = pathname.includes('resume') ? '/resume' : '';
console.log('assetsPrefix', assetsPrefix);

return (
<Card className="flex">
Expand Down
3 changes: 3 additions & 0 deletions src/components/resume-project-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ export function ResumeProjectCard({
}: Props) {

const pathname = usePathname ();
console.log('pathname', pathname);
const assetsPrefix = pathname.includes('resume') ? '/resume' : '';
console.log('assetsPrefix', assetsPrefix);


return (
<div className="relative p-3 border border-gray-300 dark:border-gray-500 rounded-lg">
Expand Down

0 comments on commit d228e3a

Please sign in to comment.