diff --git a/src/app/(main)/components/font-size-slider.tsx b/src/app/(main)/components/font-size-slider.tsx
index ce3fa3c..df2156a 100644
--- a/src/app/(main)/components/font-size-slider.tsx
+++ b/src/app/(main)/components/font-size-slider.tsx
@@ -1,49 +1,49 @@
-import { cn } from "@/lib/utils";
-import { Slider } from "@/components/ui/slider";
-import { useCodeEditorStore } from "@/store/useCodeEditorStore";
-import { MAX_FONT_SIZE, MIN_FONT_SIZE } from "@/constants/editor/options";
+// import { cn } from "@/lib/utils";
+// import { Slider } from "@/components/ui/slider";
+// import { useCodeEditorStore } from "@/store/useCodeEditorStore";
+// import { MAX_FONT_SIZE, MIN_FONT_SIZE } from "@/constants/editor/options";
-export default function FontSizeSlider() {
- const skipInterval = 2;
- const ticks = [...Array(MAX_FONT_SIZE - MIN_FONT_SIZE + 1)].map(
- (_, i) => i + MIN_FONT_SIZE
- );
- const { fontSize, setFontSize } = useCodeEditorStore();
+// export default function FontSizeSlider() {
+// const skipInterval = 2;
+// const ticks = [...Array(MAX_FONT_SIZE - MIN_FONT_SIZE + 1)].map(
+// (_, i) => i + MIN_FONT_SIZE
+// );
+// const { fontSize, setFontSize } = useCodeEditorStore();
- const handleSliderChange = (value: number[]) => {
- setFontSize(value[0]);
- };
+// const handleSliderChange = (value: number[]) => {
+// setFontSize(value[0]);
+// };
- return (
-
-
-
- {ticks.map((tick, i) => (
-
-
-
- {tick}
-
-
- ))}
-
-
- );
-}
+// return (
+//
+//
+//
+// {ticks.map((tick, i) => (
+//
+//
+//
+// {tick}
+//
+//
+// ))}
+//
+//
+// );
+// }
diff --git a/src/app/playground/layout/editor-panel.tsx b/src/app/playground/layout/editor-panel.tsx
index cfd5497..17fccfd 100644
--- a/src/app/playground/layout/editor-panel.tsx
+++ b/src/app/playground/layout/editor-panel.tsx
@@ -5,6 +5,7 @@ import { useEditorStore } from "@/store/useEditorStore";
export default function EditorPanel() {
const { setLanguage, setCode } = useEditorStore();
+
useEffect(() => {
const handleMessage = (event: MessageEvent) => {
if (event.origin === "https://editor.litchi.icu") {
@@ -20,7 +21,7 @@ export default function EditorPanel() {
return () => {
window.removeEventListener("message", handleMessage);
};
- }, []);
+ }, [setLanguage, setCode]);
return ;
}
diff --git a/src/components/ui/chat/chat-input.tsx b/src/components/ui/chat/chat-input.tsx
index fd7ea16..00d4240 100644
--- a/src/components/ui/chat/chat-input.tsx
+++ b/src/components/ui/chat/chat-input.tsx
@@ -2,6 +2,7 @@ import * as React from "react";
import { Textarea } from "@/components/ui/textarea";
import { cn } from "@/lib/utils";
+// eslint-disable-next-line @typescript-eslint/no-empty-object-type
interface ChatInputProps extends React.TextareaHTMLAttributes{}
const ChatInput = React.forwardRef(
diff --git a/src/components/ui/chat/chat-message-list.tsx b/src/components/ui/chat/chat-message-list.tsx
index 8743874..70809a9 100644
--- a/src/components/ui/chat/chat-message-list.tsx
+++ b/src/components/ui/chat/chat-message-list.tsx
@@ -8,10 +8,12 @@ interface ChatMessageListProps extends React.HTMLAttributes {
}
const ChatMessageList = React.forwardRef(
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
({ className, children, smooth = false, ...props }, _ref) => {
const {
scrollRef,
isAtBottom,
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
autoScrollEnabled,
scrollToBottom,
disableAutoScroll,