editor: remove unnecessary console.logs

This commit is contained in:
Abdullah Atta
2023-07-26 10:00:56 +05:00
committed by Abdullah Atta
parent d11a9b2219
commit 708c2d373d
4 changed files with 1 additions and 5 deletions

View File

@@ -67,7 +67,6 @@ function useHistory<T>(initial: T) {
}, [canGoBack]);
const navigate = useCallback((state: T) => {
console.log("NAVI", state);
setCurrent((prev) => {
if (prev) stack.current.push(prev);
return state;
@@ -159,7 +158,6 @@ export function ActionSheetPresenter(
onRequestClose={() => onBeforeClose()}
portalClassName={"bottom-sheet-presenter-portal"}
onAfterOpen={() => {
console.log("OPEGN!");
animation.start({ transition: TRANSITION, y: 0 });
}}
overlayElement={(overlayElementProps, contentEl) => {

View File

@@ -82,7 +82,6 @@ const updateView = (state: EditorState, dispatch: DispatchFn) => {
const regex = (s: string, settings: SearchSettings): RegExp => {
const { enableRegex, matchCase, matchWholeWord } = settings;
const boundary = matchWholeWord ? "\\b" : "";
console.log(boundary);
return RegExp(
boundary +
(enableRegex ? s : s.replace(/[/\\^$*+?.()|[\]]/g, "\\$&")) +

View File

@@ -42,7 +42,7 @@ export function WebClipComponent(
const embedRef = useRef<HTMLIFrameElement>(null);
const resizeObserverRef = useRef<ResizeObserver>();
const { src, title, fullscreen, html } = node.attrs;
console.log(node.attrs);
useEffect(() => {
const iframe = embedRef.current;
if (!iframe || !iframe.contentDocument || !isLoading || !html) return;

View File

@@ -119,7 +119,6 @@ export function EditLink(props: ToolProps) {
let commandChain = editor.current.chain();
if (!isImage) {
console.log(from, to);
commandChain = commandChain.command(({ tr }) => {
tr.removeMark(from, to, mark.type);
tr.insertText(