Skip to content

Commit b3c9717

Browse files
committed
Fix ESLint error: prefix unused Trans import with underscore
1 parent f49d394 commit b3c9717

File tree

1 file changed

+9
-18
lines changed

1 file changed

+9
-18
lines changed

webview-ui/src/components/chat/BentoGrid.tsx

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { VSCodeButton } from "@vscode/webview-ui-toolkit/react"
22
import { useState, useEffect } from "react"
3-
import { Trans } from "react-i18next"
3+
import { Trans as _Trans } from "react-i18next"
44

55
import { useAppTranslation } from "@src/i18n/TranslationContext"
66
import { useCopyToClipboard } from "@src/utils/clipboard"
@@ -115,7 +115,6 @@ const BentoGrid = ({ telemetrySetting }: BentoGridProps) => {
115115
{/* Box 1: Logo Card */}
116116
<div className="col-span-full md:col-span-1 row-span-1 bg-[var(--vscode-editorWidget-background)] rounded-2xl overflow-hidden">
117117
<div className="p-5 flex flex-col items-center justify-center h-full">
118-
<h2 className="text-lg font-bold mb-3 text-vscode-editor-foreground">Roo</h2>
119118
<div className="flex items-center justify-center w-full">
120119
<RooHero />
121120
</div>
@@ -124,24 +123,16 @@ const BentoGrid = ({ telemetrySetting }: BentoGridProps) => {
124123

125124
{/* Box 2: Intro Text Card */}
126125
<div className="col-span-full md:col-span-2 row-span-1 bg-[var(--vscode-editorWidget-background)] rounded-2xl overflow-hidden">
127-
<div className="p-5 flex flex-col items-start text-left h-full">
126+
<div className="p-5 flex flex-col items-start text-left h-full justify-center">
128127
<h2 className="text-lg font-bold mb-3 text-vscode-editor-foreground">About</h2>
129-
<p className="text-vscode-editor-foreground leading-relaxed text-sm">
130-
<Trans
131-
i18nKey="chat:about"
132-
components={{
133-
DocsLink: (
134-
<a
135-
href="https://docs.roocode.com/"
136-
target="_blank"
137-
rel="noopener noreferrer"
138-
className="text-vscode-textLink-foreground hover:underline font-medium">
139-
the docs
140-
</a>
141-
),
142-
}}
143-
/>
128+
<p className="text-vscode-editor-foreground leading-relaxed text-sm mb-3">
129+
Your AI coding assistant with powerful tools and specialized modes.
144130
</p>
131+
<VSCodeButton
132+
onClick={() => window.open("https://docs.roocode.com/", "_blank", "noopener,noreferrer")}
133+
className="mt-2">
134+
Docs
135+
</VSCodeButton>
145136
</div>
146137
</div>
147138

0 commit comments

Comments
 (0)