From 4c410be9ba115a8a42f73500d118678ae86a74f8 Mon Sep 17 00:00:00 2001 From: enes Date: Tue, 7 Jan 2025 09:49:02 +0100 Subject: [PATCH] feat(image): use image upload field --- src/components/ModForm.tsx | 9 +++++---- src/pages/write/index.tsx | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/components/ModForm.tsx b/src/components/ModForm.tsx index 98cdc22..4f852c1 100644 --- a/src/components/ModForm.tsx +++ b/src/components/ModForm.tsx @@ -23,11 +23,13 @@ import { ModPageLoaderResult } from '../types' import { initializeFormState } from '../utils' -import { CheckboxField, InputError, InputField } from './Inputs' +import { CheckboxField, InputField, InputFieldWithImageUpload } from './Inputs' import { OriginalAuthor } from './OriginalAuthor' import { CategoryAutocomplete } from './CategoryAutocomplete' import { AlertPopup } from './AlertPopup' import { Editor, EditorRef } from './Markdown/Editor' +import { MEDIA_OPTIONS } from 'controllers' +import { InputError } from './Inputs/Error' interface GameOption { value: string @@ -220,10 +222,9 @@ export const ModForm = () => { /> - { const userState = useAppSelector((state) => state.user)