Skip to content

Commit 7f51a6e

Browse files
author
kim
committed
refactor: fix lint errors
1 parent 5cc070e commit 7f51a6e

File tree

4 files changed

+2
-8
lines changed

4 files changed

+2
-8
lines changed

src/modules/common/CommentBody.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ function code(props: {
8484
{({ className, style, tokens, getLineProps, getTokenProps }) => (
8585
<div className={className} style={style}>
8686
{tokens.map((line, i) => (
87-
// eslint-disable-next-line react/jsx-key
8887
<div
8988
key={i}
9089
{...getLineProps({
@@ -93,7 +92,6 @@ function code(props: {
9392
})}
9493
>
9594
{line.map((token, key) => (
96-
// eslint-disable-next-line react/jsx-key
9795
<span
9896
key={key}
9997
{...getTokenProps({

src/modules/settings/ChatbotModelSelect.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const models = Object.entries(GPTVersion)
5959
// sort models to put deprecated last in the list
6060
.toSorted(compareModels);
6161

62-
function ChatbotModelSelect({}) {
62+
function ChatbotModelSelect() {
6363
const { data: chatbotPromptSettings } =
6464
hooks.useAppSettings<ChatbotPromptSettings>({
6565
name: SettingsKeys.ChatbotPrompt,

src/modules/settings/GeneralSettingsView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { JSX } from 'react';
22
import { useTranslation } from 'react-i18next';
33

4-
import { FormLabel, Stack, TextField, Typography } from '@mui/material';
4+
import { FormLabel, Stack, TextField } from '@mui/material';
55

66
import type { GeneralSettings } from '@/config/appSetting';
77
import {

src/modules/settings/chatbot/ChatbotEditingView.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,8 @@ import {
88
AccordionSummary,
99
Box,
1010
Button,
11-
Chip,
1211
FormLabel,
1312
Link,
14-
MenuItem,
15-
Select,
1613
Stack,
1714
TextField,
1815
TextareaAutosize,
@@ -21,7 +18,6 @@ import {
2118
} from '@mui/material';
2219

2320
import type { ChatBotMessage } from '@graasp/sdk';
24-
import { DEPRECATED_GPT_MODELS, GPTVersion } from '@graasp/sdk';
2521

2622
import { ChevronDownIcon } from 'lucide-react';
2723

0 commit comments

Comments
 (0)