Skip to content

Commit

Permalink
fix: 워크스페이스 이동 안되는 문제 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
yewonJin committed Dec 3, 2024
1 parent 4f9824a commit 2270d6b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions apps/frontend/src/features/workspace/ui/WorkspaceList/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useState } from "react";
import { Check, Trash2 } from "lucide-react";
import { Link, useNavigate, useParams } from "@tanstack/react-router";
import { useNavigate, useParams } from "@tanstack/react-router";

import { useRemoveWorkspace } from "../../model/workspaceMutations";
import { useUserWorkspace } from "../../model/workspaceQuries";
Expand Down Expand Up @@ -41,17 +41,17 @@ export function WorkspaceList() {
onCloseModal={onCloseModal}
onConfirm={onConform}
/>
<Link
<a
href="/"
onClick={() => setOpen(false)}
className="flex items-center gap-2 py-2 hover:cursor-pointer hover:bg-[#f5f5f5]"
>
<div className="h-6 w-6 rounded-md bg-neutral-300"></div>
공용 워크스페이스
{workspaceId === undefined && <Check width={18} height={18} />}
</Link>
</a>
{data.workspaces.map((workspace) => (
<Link
<a
href={`/workspace/${workspace.workspaceId}`}
onClick={() => setOpen(false)}
key={workspace.workspaceId}
Expand All @@ -75,7 +75,7 @@ export function WorkspaceList() {
>
<Trash2 width={18} height={18} />
</span>
</Link>
</a>
))}
</div>
);
Expand Down

0 comments on commit 2270d6b

Please sign in to comment.