This website uses cookies to enhance your browsing experience, analyze site traffic, and serve better user experiences. By continuing to use this site, you consent to our use of cookies. Learn more in our cookie policy
import FormBuilder from "@ui/organisms/FormBuilder";
import { FormBuilderRef } from "@ui/organisms/FormBuilder/FormBuilder";
import { useRef } from "react";
function CreateTagTemplate({
id,
formConfig,
formState,
handleFormSubmit,
}: any) {
const formBuilderRef = useRef<FormBuilderRef>(null);
return (
<div className="content">
<div className="wrapper">
<h4>ADD TAGS</h4>
<a href="/tags/list">All Tags</a>
<a href="/tags/create">Add New Tag</a>
<FormBuilder
ref={formBuilderRef}
config={formConfig}
initialConfigValues={{
...formState,
}}
submitHandler={handleFormSubmit}
hideStep
/>
</div>
</div>
)
}
export default CreateTagTemplate
import FormBuilder from "@ui/organisms/FormBuilder";
import { FormBuilderRef } from "@ui/organisms/FormBuilder/FormBuilder";
import { useRef } from "react";
function CreateTagTemplate({
id,
formConfig,
formState,
handleFormSubmit,
}: any) {
const formBuilderRef = useRef<FormBuilderRef>(null);
return (
<div className="content">
<div className="wrapper">
<h4>ADD TAGS</h4>
<a href="/tags/list">All Tags</a>
<a href="/tags/create">Add New Tag</a>
<FormBuilder
ref={formBuilderRef}
config={formConfig}
initialConfigValues={{
...formState,
}}
submitHandler={handleFormSubmit}
hideStep
/>
</div>
</div>
)
}
export default CreateTagTemplate