update item nav
This commit is contained in:
parent
3c418952d5
commit
e3fee6df49
|
|
@ -1,18 +1,19 @@
|
|||
import { useState } from "react"
|
||||
import { LexicalErrorBoundary } from "@lexical/react/LexicalErrorBoundary"
|
||||
import { RichTextPlugin } from "@lexical/react/LexicalRichTextPlugin"
|
||||
import { LexicalErrorBoundary } from "@lexical/react/LexicalErrorBoundary";
|
||||
import { RichTextPlugin } from "@lexical/react/LexicalRichTextPlugin";
|
||||
import { useState } from "react";
|
||||
|
||||
import { ContentEditable } from "@/components/editor/editor-ui/content-editable"
|
||||
import { ContentEditable } from "@/components/editor/editor-ui/content-editable";
|
||||
|
||||
export function Plugins() {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
const [floatingAnchorElem, setFloatingAnchorElem] =
|
||||
useState<HTMLDivElement | null>(null)
|
||||
useState<HTMLDivElement | null>(null);
|
||||
|
||||
const onRef = (_floatingAnchorElem: HTMLDivElement) => {
|
||||
if (_floatingAnchorElem !== null) {
|
||||
setFloatingAnchorElem(_floatingAnchorElem)
|
||||
setFloatingAnchorElem(_floatingAnchorElem);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="relative">
|
||||
|
|
@ -32,5 +33,5 @@ export function Plugins() {
|
|||
</div>
|
||||
{/* actions plugins */}
|
||||
</div>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
"use client";
|
||||
import { Sku } from "@/entities/Sku";
|
||||
import axios from "@/lib/axios";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { useItemStore } from "@/stores/item-store";
|
||||
import { zodResolver } from "@hookform/resolvers/zod";
|
||||
import { Label } from "@radix-ui/react-label";
|
||||
import { useState } from "react";
|
||||
|
|
@ -23,7 +23,6 @@ import { Input } from "../ui/input";
|
|||
import { Spinner } from "../ui/spinner";
|
||||
import { Textarea } from "../ui/textarea";
|
||||
import UncontrolledJoditEditor from "./uncontrolled-jodit-editor";
|
||||
import { useItemStore } from "@/stores/item-store";
|
||||
|
||||
export interface IItemProps {
|
||||
data: ItemType;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
/* eslint-disable react-hooks/exhaustive-deps */
|
||||
import { useItemStore } from "@/stores/item-store";
|
||||
import { ChevronRight } from "lucide-react";
|
||||
import { useMemo } from "react";
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
"use client";
|
||||
|
||||
import { Input } from "@/components/ui/input";
|
||||
import { ChevronRight, Search, X } from "lucide-react";
|
||||
import { Search, X } from "lucide-react";
|
||||
import { useRouter, useSearchParams } from "next/navigation";
|
||||
import { useEffect, useState, useTransition } from "react";
|
||||
import { Spinner } from "../ui/spinner";
|
||||
|
|
|
|||
Loading…
Reference in New Issue