Skip to content

Commit a10620f

Browse files
committed
test: cn 커스텀 텍스트 컬러 그룹 병합 테스트 추가
1 parent 1c89c92 commit a10620f

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/shared/const/headerValues.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,10 @@ const matchesSegment = (pathname: string, prefix: string): boolean => {
22
return pathname === prefix || pathname.startsWith(prefix + "/");
33
};
44

5+
const HIDDEN_PREFIXES = ["/signin", "/signup", "/vote", "/admin"];
6+
57
export const isHiddenPath = (pathname: string): boolean => {
6-
return (
7-
matchesSegment(pathname, "/signin") ||
8-
matchesSegment(pathname, "/signup") ||
9-
matchesSegment(pathname, "/vote") ||
10-
matchesSegment(pathname, "/admin")
11-
);
8+
return HIDDEN_PREFIXES.some(prefix => matchesSegment(pathname, prefix));
129
};
1310

1411
export const links = [

0 commit comments

Comments
 (0)