fix: remove unused Tag component
This commit is contained in:
parent
c353f48259
commit
1694ded668
@ -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>
|
||||
);
|
||||
|
@ -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,
|
||||
|
@ -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, [
|
||||
|
@ -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>
|
||||
);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user