doc: add all the necessary state that is required
This commit is contained in:
1 parent
ca79396e29
commit
97c674e241
1 file changed
+10
@@ -7,6 +7,16 @@ import { getRandomPrompt } from "../utils";
|
||||
import { FormField, Loader } from "../components";
|
||||
|
||||
const CreatePost = () => {
|
||||
const navigate = useNavigate();
|
||||
const [form, setForm] = useState({
|
||||
name: "",
|
||||
prompt: "",
|
||||
photo: "",
|
||||
});
|
||||
|
||||
const [generatingImg, setGeneratingImg] = useState(false);
|
||||
const [loading, setLoading] = useState(false);
|
||||
|
||||
return <div>CreatePost</div>;
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user