mirror of
https://github.com/waynesutton/markdown-site.git
synced 2026-01-12 04:09:14 +00:00
refactor: remove Cursor and VS Code options from CopyPageDropdown
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { useState, useRef, useEffect } from "react";
|
||||
import { Copy, MessageSquare, Sparkles, Terminal, Code } from "lucide-react";
|
||||
import { Copy, MessageSquare, Sparkles } from "lucide-react";
|
||||
|
||||
interface CopyPageDropdownProps {
|
||||
title: string;
|
||||
@@ -66,21 +66,6 @@ export default function CopyPageDropdown({
|
||||
setIsOpen(false);
|
||||
};
|
||||
|
||||
// Open Cursor MCP connection page
|
||||
const handleConnectToCursor = () => {
|
||||
window.open("https://cursor.sh/settings/mcp", "_blank");
|
||||
setIsOpen(false);
|
||||
};
|
||||
|
||||
// Open VS Code MCP connection page
|
||||
const handleConnectToVSCode = () => {
|
||||
window.open(
|
||||
"https://marketplace.visualstudio.com/items?itemName=anthropics.claude-code",
|
||||
"_blank",
|
||||
);
|
||||
setIsOpen(false);
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="copy-page-dropdown" ref={dropdownRef}>
|
||||
{/* Trigger button */}
|
||||
@@ -153,34 +138,6 @@ export default function CopyPageDropdown({
|
||||
</span>
|
||||
</div>
|
||||
</button>
|
||||
|
||||
{/* Connect to Cursor */}
|
||||
<button className="copy-page-item" onClick={handleConnectToCursor}>
|
||||
<Terminal size={16} className="copy-page-icon" />
|
||||
<div className="copy-page-item-content">
|
||||
<span className="copy-page-item-title">
|
||||
Connect to Cursor
|
||||
<span className="external-arrow">↗</span>
|
||||
</span>
|
||||
<span className="copy-page-item-desc">
|
||||
Install MCP Server on Cursor
|
||||
</span>
|
||||
</div>
|
||||
</button>
|
||||
|
||||
{/* Connect to VS Code */}
|
||||
<button className="copy-page-item" onClick={handleConnectToVSCode}>
|
||||
<Code size={16} className="copy-page-icon" />
|
||||
<div className="copy-page-item-content">
|
||||
<span className="copy-page-item-title">
|
||||
Connect to VS Code
|
||||
<span className="external-arrow">↗</span>
|
||||
</span>
|
||||
<span className="copy-page-item-desc">
|
||||
Install MCP Server on VS Code
|
||||
</span>
|
||||
</div>
|
||||
</button>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user