33 lines
711 B
TypeScript
33 lines
711 B
TypeScript
import { Formik,Form, Field } from "formik";
|
|
import React from "react";
|
|
import { useTranslation } from "react-i18next";
|
|
import LaTeXInputMemo from "./LaTeXInputMemo";
|
|
const Dummy = () => {
|
|
const [t] = useTranslation();
|
|
return (
|
|
<div className="DummyHomePage">
|
|
|
|
<Formik initialValues={{}} onSubmit={()=>{}}>
|
|
<Form>
|
|
{Array.from({length:1000}).map((item:any,index)=>{
|
|
return (
|
|
<div key={index}>
|
|
|
|
<Field
|
|
name={`content${index}`}
|
|
component={LaTeXInputMemo}
|
|
label={t("input.answer_content")}
|
|
/>
|
|
|
|
</div>
|
|
)
|
|
})}
|
|
</Form>
|
|
</Formik>
|
|
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default Dummy;
|