chore: app dir improvement (#4750)
* chore: remove constants package. * fix: useRouter import in editor. * chore: improve `peekCycle` and `peekModule` logic. * style: update app progress bar color.
This commit is contained in:
parent
a88f2e3cba
commit
7ac07b7b73
14 changed files with 10 additions and 394 deletions
|
|
@ -2,12 +2,13 @@
|
|||
// @ts-nocheck
|
||||
import { NodeViewWrapper } from "@tiptap/react";
|
||||
import { cn } from "src/lib/utils";
|
||||
import { useRouter } from "next/router";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { IMentionHighlight } from "src/types/mention-suggestion";
|
||||
import { useEffect, useState } from "react";
|
||||
|
||||
// eslint-disable-next-line import/no-anonymous-default-export
|
||||
export const MentionNodeView = (props) => {
|
||||
// TODO: move it to web app
|
||||
const router = useRouter();
|
||||
const [highlightsState, setHighlightsState] = useState<IMentionHighlight[]>();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue