diff --git a/src/shared/components/post/post-form.tsx b/src/shared/components/post/post-form.tsx index 6afe70ca..8224683b 100644 --- a/src/shared/components/post/post-form.tsx +++ b/src/shared/components/post/post-form.tsx @@ -156,11 +156,6 @@ function handleCancel(i: PostForm) { i.props.onCancel?.(); } -function handlePreviewToggle(i: PostForm, event: any) { - event.preventDefault(); - i.setState({ previewMode: !i.state.previewMode }); -} - function handleImageUploadPaste(i: PostForm, event: any) { const image = event.clipboardData.files[0]; if (image) { diff --git a/tsconfig.json b/tsconfig.json index a1c4fe5c..aa3115fa 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -21,7 +21,7 @@ "noFallthroughCasesInSwitch": true, "paths": { "@/*": ["/*"], - "@utils/*": ["shared/utils/*"], + "@utils/*": ["shared/utils/*"] } }, "include": [