[WIKI-640] chore: refactor link view #7727
This commit is contained in:
parent
a1500c2206
commit
af1dcd335e
2 changed files with 17 additions and 3 deletions
|
|
@ -5,10 +5,10 @@ import { cn } from "@plane/utils";
|
|||
// constants
|
||||
import { DEFAULT_DISPLAY_CONFIG } from "@/constants/config";
|
||||
import { CORE_EXTENSIONS } from "@/constants/extension";
|
||||
// components
|
||||
import { LinkContainer } from "@/plane-editor/components/link-container";
|
||||
// types
|
||||
import { TDisplayConfig } from "@/types";
|
||||
// components
|
||||
import { LinkViewContainer } from "./link-view-container";
|
||||
|
||||
type Props = {
|
||||
children: ReactNode;
|
||||
|
|
@ -95,7 +95,7 @@ export const EditorContainer: FC<Props> = (props) => {
|
|||
)}
|
||||
>
|
||||
{children}
|
||||
{!isTouchDevice && <LinkViewContainer editor={editor} containerRef={containerRef} />}
|
||||
{!isTouchDevice && <LinkContainer editor={editor} containerRef={containerRef} />}
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue