Skip to content

Commit bc6a568

Browse files
committed
refactor: 필요없는 주석 삭제
1 parent eff8680 commit bc6a568

File tree

4 files changed

+1
-41
lines changed

4 files changed

+1
-41
lines changed

apps/frontend/src/entities/user/model/useUserConnection.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// provider: createSocketIOProvider("users", new Y.Doc()),
21
import * as Y from "yjs";
32
import { createSocketIOProvider } from "@/shared/api";
43
import useConnectionStore from "@/shared/model/useConnectionStore";

apps/frontend/src/features/editor/ui/Editor/selectors/node-selector.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ const items: SelectorItem[] = [
2121
name: "Text",
2222
icon: TextIcon,
2323
command: (editor) => editor.chain().focus().clearNodes().run(),
24-
// I feel like there has to be a more efficient way to do this – feel free to PR if you know how!
2524
isActive: (editor) =>
2625
editor.isActive("paragraph") &&
2726
!editor.isActive("bulletList") &&

apps/frontend/src/features/editor/ui/Editor/ui/menu.tsx

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,6 @@ import { useTheme } from "next-themes";
55
import { Button } from "./button";
66
import { Popover, PopoverContent, PopoverTrigger } from "./popover";
77

8-
// TODO implement multiple fonts editor
9-
// const fonts = [
10-
// {
11-
// font: "Default",
12-
// icon: <FontDefault className="h-4 w-4" />,
13-
// },
14-
// {
15-
// font: "Serif",
16-
// icon: <FontSerif className="h-4 w-4" />,
17-
// },
18-
// {
19-
// font: "Mono",
20-
// icon: <FontMono className="h-4 w-4" />,
21-
// },
22-
// ];
238
const appearances = [
249
{
2510
theme: "System",
@@ -35,7 +20,6 @@ const appearances = [
3520
},
3621
];
3722
export default function Menu() {
38-
// const { font: currentFont, setFont } = useContext(AppContext);
3923
const { theme: currentTheme, setTheme } = useTheme();
4024

4125
return (
@@ -46,27 +30,7 @@ export default function Menu() {
4630
</Button>
4731
</PopoverTrigger>
4832
<PopoverContent className="w-52 p-2" align="end">
49-
{/* <div className="p-2">
50-
<p className="p-2 text-xs font-medium text-stone-500">Font</p>
51-
{fonts.map(({ font, icon }) => (
52-
<button
53-
key={font}
54-
className="flex w-full items-center justify-between rounded px-2 py-1 text-sm text-stone-600 hover:bg-stone-100"
55-
onClick={() => {
56-
setFont(font);
57-
}}
58-
>
59-
<div className="flex items-center space-x-2">
60-
<div className="rounded-sm border border-stone-200 p-1">
61-
{icon}
62-
</div>
63-
<span>{font}</span>
64-
</div>
65-
{currentFont === font && <Check className="h-4 w-4" />}
66-
</button>
67-
))}
68-
</div> */}
69-
<p className="text-muted-foreground p-2 text-xs font-medium">
33+
<p className="p-2 text-xs font-medium text-muted-foreground">
7034
Appearance
7135
</p>
7236
{appearances.map(({ theme, icon }) => (

apps/frontend/src/features/workspace/model/workspaceMutations.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ import {
1111
} from "../api/worskspaceInviteApi";
1212
import { useWorkspace } from "@/shared/lib";
1313

14-
// response로 workspaceId가 오는데 userWorkspace를 어떻게 invalidate 할까?
15-
// login state에 있는 userId로?
1614
export const useCreateWorkspace = () => {
1715
const queryClient = useQueryClient();
1816

0 commit comments

Comments
 (0)