From 9ffeb3fe5194ce6697e568ba4c57e763ab9b4e57 Mon Sep 17 00:00:00 2001 From: SleeplessOne1917 Date: Tue, 20 Jun 2023 21:12:48 -0400 Subject: [PATCH] Run prettier and lint --- src/shared/components/post/post-form.tsx | 5 ----- tsconfig.json | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) 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": [