Refactor : 헤더 변경

This commit is contained in:
정현조 2024-09-20 07:22:17 +09:00
parent c9ff589f57
commit 6ac6ddf987

View File

@ -7,7 +7,7 @@ export interface HeaderProps extends React.HTMLAttributes<HTMLDivElement> {}
export default function Header({ className, ...props }: HeaderProps) {
const location = useLocation();
const { workspaceId, projectId } = useParams<{ workspaceId: string; projectId?: string }>();
const { workspaceId } = useParams<{ workspaceId: string }>();
const isWorkspaceIdNaN = isNaN(Number(workspaceId));
const isHomePage = location.pathname === '/';
@ -46,7 +46,7 @@ export default function Header({ className, ...props }: HeaderProps) {
labeling
</Link>
<Link
to={`/admin/${workspaceId}/project/${projectId ?? ''}`}
to={`/admin/${workspaceId}}`}
className={cn('text-color-text-default-default', 'font-body', 'text-sm sm:text-base md:text-lg')}
>
admin