- Add useNewGuide hook with state and handlers for guide, frames, and steps - Add title, description, and file upload inputs to NewGuide - Add FileUpload component and supporting hooks - Add guideId to FrameSchema, remove steps and order - Remove content field and frames array from GuideSchema - Remove order field from StepsSchema
20 lines
396 B
TypeScript
20 lines
396 B
TypeScript
import FileUpload from "../components/FileUpload";
|
|
|
|
export default function NewGuide() {
|
|
return (
|
|
<div>
|
|
<form>
|
|
<label>
|
|
<span>Title</span>
|
|
<input type="text" name="title" />
|
|
</label>
|
|
<label>
|
|
<span>Description</span>
|
|
<textarea name="description" />
|
|
</label>
|
|
|
|
<FileUpload />
|
|
</form>
|
|
</div>
|
|
);
|
|
}
|