|
|
@ -1,10 +1,16 @@ |
|
|
|
import React, { useState } from "react"; |
|
|
|
import React, { useState } from "react"; |
|
|
|
|
|
|
|
|
|
|
|
import FormInput from "./FormInput"; |
|
|
|
import FormInput from "./FormInput"; |
|
|
|
|
|
|
|
import OutlineInput from "./OutlineInput"; |
|
|
|
|
|
|
|
import OutlineSpan from "./OutlineSpan"; |
|
|
|
|
|
|
|
import OutlineTextarea from "./OutlineTextarea"; |
|
|
|
|
|
|
|
|
|
|
|
function FormFields() { |
|
|
|
function FormFields() { |
|
|
|
const list = { |
|
|
|
const list = { |
|
|
|
1: <FormInput />, |
|
|
|
1: <FormInput />, |
|
|
|
|
|
|
|
2: <OutlineInput />, |
|
|
|
|
|
|
|
3: <OutlineSpan />, |
|
|
|
|
|
|
|
4: <OutlineTextarea />, |
|
|
|
}; |
|
|
|
}; |
|
|
|
const [type, setType] = useState(1); |
|
|
|
const [type, setType] = useState(1); |
|
|
|
return ( |
|
|
|
return ( |
|
|
|