import { Course } from "@/data"; import { Button, Grid, TextField } from "@material-ui/core"; import { Alert, Autocomplete } from "@material-ui/lab"; import React from "react"; import { useTranslation } from "react-i18next"; import { useFormikContext } from "formik"; import { InternshipFormValues } from "@/forms/internship"; import { useCurrentEdition } from "@/hooks"; export const StudentForm = () => { const { t } = useTranslation(); const { values: { student } } = useFormikContext(); const course = useCurrentEdition()?.course as Course; return <> course.name } renderInput={ props => } options={[ course ]} value={ course } disabled /> skontaktuj się z opiekunem }> Powyższe dane nie są poprawne? ; }