Skip to content

Commit dba62c4

Browse files
committed
Add wound aspect icon and update prefixPath default
Added a fallback for the 'wound' aspect in AspectIcon. Updated prefixPath to use '/tarot-but-hours' as the default base path and prevent double-prefixing.
1 parent f81041d commit dba62c4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

web/src/components/AspectIcon.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const aspectMap: Record<string, string> = {
2222
secrethistories: 'Secrethistories.png',
2323
sky: 'sky.png',
2424
winter: 'Winter.webp',
25+
wound: 'edge.png', // Fallback for wound
2526
};
2627

2728
export function AspectIcon({ aspect, className, size = 24 }: AspectIconProps) {

web/src/lib/utils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ export function cn(...inputs: ClassValue[]) {
66
}
77

88
export function prefixPath(path: string) {
9-
const basePath = process.env.NEXT_PUBLIC_BASE_PATH || "";
9+
const basePath = process.env.NEXT_PUBLIC_BASE_PATH || "/tarot-but-hours";
1010
if (path.startsWith("/") && basePath) {
11+
if (path.startsWith(basePath)) return path;
1112
return `${basePath}${path}`;
1213
}
1314
return path;

0 commit comments

Comments
 (0)