fix: remove unused Tag component

This commit is contained in:
Kirill Siukhin 2025-07-05 17:36:36 +05:00
parent c353f48259
commit 1694ded668
4 changed files with 6 additions and 17 deletions

View File

@ -2,7 +2,7 @@ import Editor from "@/components/Editor";
export default function Home() {
return (
<div className="flex flex-col items-center">
<div className="flex justify-center">
<Editor />
</div>
);

View File

@ -1,10 +1,10 @@
"use client";
import { ChangeEvent } from "react";
import { Lock, LockOpen, Menu, Minus, Plus, X } from "lucide-react";
import { Action, IBlock, ILine } from "@/lib/editorReducer";
import LineInput from "./LineInput";
import IconOnlyButton from "./IconOnlyButton";
import { ChangeEvent } from "react";
import LineInput from "./LineInput";
export default function Block({
block,

View File

@ -1,10 +1,10 @@
"use client";
import { useReducer } from "react";
import { editorReducer } from "@/lib/editorReducer";
import Block from "./Block";
import IconOnlyButton from "./IconOnlyButton";
import { Plus } from "lucide-react";
import { editorReducer } from "@/lib/editorReducer";
import IconOnlyButton from "./IconOnlyButton";
import Block from "./Block";
export default function Editor() {
const [state, dispatch] = useReducer(editorReducer, [

View File

@ -1,11 +0,0 @@
export default function Tag({ name }: { name: string }) {
return (
<div className="flex gap-3 items-center my-4">
<hr className="border border-neutral-800 w-full" />
<div className="bg-pink-500 px-2 rounded-full font-bold min-w-fit text-sm">
{name}
</div>
<hr className="border border-neutral-800 w-full" />
</div>
);
}