[WEB-3797] fix: remove leading slash from URL to copy (#6890)
* fix: remove prefix slash if present * chore: make use of URL class to generate a valid URL
This commit is contained in:
parent
27cec64c56
commit
37699362ad
9 changed files with 24 additions and 45 deletions
|
|
@ -1,14 +1,10 @@
|
|||
import { useMemo } from "react";
|
||||
// plane constants
|
||||
// plane imports
|
||||
import { IS_FAVORITE_MENU_OPEN } from "@plane/constants";
|
||||
// plane editor
|
||||
import { EditorRefApi } from "@plane/editor";
|
||||
// plane types
|
||||
import { EPageAccess } from "@plane/types/src/enums";
|
||||
// plane ui
|
||||
import { setToast, TOAST_TYPE } from "@plane/ui";
|
||||
// helpers
|
||||
import { copyUrlToClipboard } from "@/helpers/string.helper";
|
||||
import { copyUrlToClipboard } from "@plane/utils";
|
||||
// hooks
|
||||
import { useCollaborativePageActions } from "@/hooks/use-collaborative-page-actions";
|
||||
// store types
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue