mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-25 16:09:42 +01:00
editor: remove unnecessary console.logs
This commit is contained in:
committed by
Abdullah Atta
parent
d11a9b2219
commit
708c2d373d
@@ -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) => {
|
||||
|
||||
@@ -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, "\\$&")) +
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user