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