fix(build): remove unused import EyeOff to pass strict CI build
This commit is contained in:
@@ -1,16 +1,9 @@
|
||||
import React from "react";
|
||||
import { NodeViewWrapper, NodeViewContent } from "@tiptap/react";
|
||||
import { Copy } from "lucide-react";
|
||||
|
||||
const CodeBlockComponent = ({ node, updateAttributes, extension }) => {
|
||||
const handleCopy = () => {
|
||||
navigator.clipboard.writeText(node.textContent).then(() => {
|
||||
// Optional: Add visual feedback for copy
|
||||
});
|
||||
};
|
||||
|
||||
return (
|
||||
<NodeViewWrapper className="code-block-wrapper relative">
|
||||
<NodeViewWrapper className="code-block-wrapper relative bg-[#0d1117] rounded-md overflow-hidden mb-[0.65em]">
|
||||
<div className="code-block-header flex justify-between items-center px-4 py-2 bg-[#161b22] border border-[#30363d] border-b-0 rounded-t-md text-xs font-mono">
|
||||
<select
|
||||
contentEditable={false}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import React, { useEffect, useCallback } from "react";
|
||||
import React, { useEffect } from "react";
|
||||
import { useEditor, EditorContent, ReactNodeViewRenderer } from "@tiptap/react";
|
||||
import StarterKit from "@tiptap/starter-kit";
|
||||
import Link from "@tiptap/extension-link";
|
||||
|
||||
@@ -8,7 +8,6 @@ import {
|
||||
Edit3,
|
||||
Eye,
|
||||
Pencil,
|
||||
EyeOff,
|
||||
Maximize2,
|
||||
Minimize2,
|
||||
FileDown,
|
||||
|
||||
Reference in New Issue
Block a user