|
|
@@ -1,5 +1,6 @@
|
|
|
import { useState, useEffect, useMemo, useContext } from "react"
|
|
|
import { Button } from "@/components/ui/button"
|
|
|
+import { ArrowLeft } from "lucide-react"
|
|
|
import { Tab, TabContent, TabHeader } from "../common/Tab"
|
|
|
import { MarketplaceViewStateManager } from "./MarketplaceViewStateManager"
|
|
|
import { useStateManager } from "./useStateManager"
|
|
|
@@ -99,16 +100,17 @@ export function MarketplaceView({ stateManager, onDone, targetTab }: Marketplace
|
|
|
<TooltipProvider delayDuration={300}>
|
|
|
<Tab>
|
|
|
<TabHeader className="flex flex-col sticky top-0 z-10 px-3 py-2">
|
|
|
- <div className="flex justify-between items-center px-2">
|
|
|
- <h3 className="font-bold m-0">{t("marketplace:title")}</h3>
|
|
|
- <div className="flex gap-2 items-center">
|
|
|
+ <div className="flex items-center justify-between gap-2 px-2">
|
|
|
+ <div className="flex items-center gap-2">
|
|
|
<Button
|
|
|
- variant="primary"
|
|
|
- onClick={() => {
|
|
|
- onDone?.()
|
|
|
- }}>
|
|
|
- {t("marketplace:done")}
|
|
|
+ variant="ghost"
|
|
|
+ className="px-1.5 -ml-2"
|
|
|
+ onClick={() => onDone?.()}
|
|
|
+ aria-label={t("settings:back")}>
|
|
|
+ <ArrowLeft />
|
|
|
+ <span className="sr-only">{t("settings:back")}</span>
|
|
|
</Button>
|
|
|
+ <h3 className="font-bold m-0">{t("marketplace:title")}</h3>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
@@ -126,12 +128,12 @@ export function MarketplaceView({ stateManager, onDone, targetTab }: Marketplace
|
|
|
/>
|
|
|
</div>
|
|
|
<button
|
|
|
- className="flex items-center justify-center gap-2 flex-1 text-sm font-medium rounded-sm transition-colors duration-300 relative z-10 text-vscode-foreground"
|
|
|
+ className="cursor-pointer flex items-center justify-center gap-2 flex-1 text-sm font-medium rounded-sm transition-colors duration-300 relative z-10 text-vscode-foreground"
|
|
|
onClick={() => manager.transition({ type: "SET_ACTIVE_TAB", payload: { tab: "mcp" } })}>
|
|
|
MCP
|
|
|
</button>
|
|
|
<button
|
|
|
- className="flex items-center justify-center gap-2 flex-1 text-sm font-medium rounded-sm transition-colors duration-300 relative z-10 text-vscode-foreground"
|
|
|
+ className="cursor-pointer flex items-center justify-center gap-2 flex-1 text-sm font-medium rounded-sm transition-colors duration-300 relative z-10 text-vscode-foreground"
|
|
|
onClick={() =>
|
|
|
manager.transition({ type: "SET_ACTIVE_TAB", payload: { tab: "mode" } })
|
|
|
}>
|