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() {
|
export default function Home() {
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col items-center">
|
<div className="flex justify-center">
|
||||||
<Editor />
|
<Editor />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
|
import { ChangeEvent } from "react";
|
||||||
import { Lock, LockOpen, Menu, Minus, Plus, X } from "lucide-react";
|
import { Lock, LockOpen, Menu, Minus, Plus, X } from "lucide-react";
|
||||||
import { Action, IBlock, ILine } from "@/lib/editorReducer";
|
import { Action, IBlock, ILine } from "@/lib/editorReducer";
|
||||||
import LineInput from "./LineInput";
|
|
||||||
import IconOnlyButton from "./IconOnlyButton";
|
import IconOnlyButton from "./IconOnlyButton";
|
||||||
import { ChangeEvent } from "react";
|
import LineInput from "./LineInput";
|
||||||
|
|
||||||
export default function Block({
|
export default function Block({
|
||||||
block,
|
block,
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { useReducer } from "react";
|
import { useReducer } from "react";
|
||||||
import { editorReducer } from "@/lib/editorReducer";
|
|
||||||
import Block from "./Block";
|
|
||||||
import IconOnlyButton from "./IconOnlyButton";
|
|
||||||
import { Plus } from "lucide-react";
|
import { Plus } from "lucide-react";
|
||||||
|
import { editorReducer } from "@/lib/editorReducer";
|
||||||
|
import IconOnlyButton from "./IconOnlyButton";
|
||||||
|
import Block from "./Block";
|
||||||
|
|
||||||
export default function Editor() {
|
export default function Editor() {
|
||||||
const [state, dispatch] = useReducer(editorReducer, [
|
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