diff --git a/src/scenes/ProgressReports/EditForm/Steps/Media/MediaInfoForm.tsx b/src/scenes/ProgressReports/EditForm/Steps/Media/MediaInfoForm.tsx index e48fffa0ab..2c2ea83266 100644 --- a/src/scenes/ProgressReports/EditForm/Steps/Media/MediaInfoForm.tsx +++ b/src/scenes/ProgressReports/EditForm/Steps/Media/MediaInfoForm.tsx @@ -1,52 +1,44 @@ import { Box, TextField } from '@mui/material'; +import { ProgressReportMediaCategory } from '~/api/schema.graphql'; import { ProgressReportMediaCategoryLabels, ProgressReportMediaCategoryList, } from '~/api/schema/enumLists'; import { labelFrom } from '~/common'; import { Form, SelectField } from '~/components/form'; -import { minLength, required } from '~/components/form/validators'; -import { useCallback, useState } from 'react'; -import { ProgressReportMediaCategory } from '~/api/schema.graphql'; -// TODO type submitForm -// @ts-ignore export const MediaInfoForm = ({ - submitForm, disabled, initialValues, }: { - submitForm: any; disabled: boolean; initialValues: { category: ProgressReportMediaCategory | null; caption: string | null; + id: string; }; }) => { - const [category, setCategory] = useState(initialValues.category); - const [caption, setCaption] = useState(initialValues.caption); - const updateMedia = useCallback(() => { - submitForm({ variables: {} }); - }, []); return ( -